Upgrade Settings from previous revision
Save config changes once
This commit is contained in:
@@ -355,12 +355,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CBOverride = "On";
|
||||
using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = DateTime.Now;
|
||||
cnt.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
//using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
//{
|
||||
// cnt.DTS = DateTime.Now;
|
||||
// cnt.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
// cnt.Save();
|
||||
//}
|
||||
}
|
||||
}
|
||||
private void rbChgBarOvrRideOff_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -373,12 +373,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CBOverride = "Off";
|
||||
using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = CurItemInfo.MyProcedure.DTS;
|
||||
cnt.UserID = CurItemInfo.MyProcedure.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
//using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
//{
|
||||
// cnt.DTS = CurItemInfo.MyProcedure.DTS;
|
||||
// cnt.UserID = CurItemInfo.MyProcedure.UserID;
|
||||
// cnt.Save();
|
||||
//}
|
||||
}
|
||||
}
|
||||
private void cmbCheckoff_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -389,12 +389,12 @@ namespace Volian.Controls.Library
|
||||
int indx = cmbCheckoff.SelectedIndex;
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
sc.Step_CheckOffIndex = indx;
|
||||
using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
{
|
||||
cnt.DTS = CurItemInfo.MyProcedure.DTS;
|
||||
cnt.UserID = CurItemInfo.MyProcedure.UserID;
|
||||
cnt.Save();
|
||||
}
|
||||
//using (Content cnt = Content.Get(CurItemInfo.MyContent.ContentID))
|
||||
//{
|
||||
// cnt.DTS = CurItemInfo.MyProcedure.DTS;
|
||||
// cnt.UserID = CurItemInfo.MyProcedure.UserID;
|
||||
// cnt.Save();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
@@ -2294,6 +2294,8 @@ namespace Volian.Controls.Library
|
||||
using (Item itm = MyItemInfo.Get())
|
||||
{
|
||||
itm.MyContent.Config = MyItemInfo.MyConfig.ToString();
|
||||
itm.MyContent.DTS = DateTime.Now;
|
||||
itm.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm.Save();
|
||||
}
|
||||
MyItemInfo.MyConfig.IsDirty = false;
|
||||
|
Reference in New Issue
Block a user