Upgrade Settings from previous revision

Save config changes once
This commit is contained in:
Rich
2012-05-03 21:45:49 +00:00
parent 079a0ef80e
commit c5b790bbb0
5 changed files with 41 additions and 18 deletions

View File

@@ -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
}

View File

@@ -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;