This commit is contained in:
Kathy Ruffing 2010-11-08 14:46:54 +00:00
parent f10c970a01
commit 0941db7c5c

View File

@ -59,12 +59,12 @@ namespace Volian.Controls.Library
case E_FieldToEdit.StepText: case E_FieldToEdit.StepText:
case E_FieldToEdit.Text: case E_FieldToEdit.Text:
_MyItem.MyContent.Text = value; _MyItem.MyContent.Text = value;
_MyItem.MyContent.UserID = Environment.UserName; _MyItem.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
_MyItem.MyContent.DTS = DateTime.Now; _MyItem.MyContent.DTS = DateTime.Now;
break; break;
case E_FieldToEdit.Number: case E_FieldToEdit.Number:
_MyItem.MyContent.Number = value; _MyItem.MyContent.Number = value;
_MyItem.MyContent.UserID = Environment.UserName; _MyItem.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
_MyItem.MyContent.DTS = DateTime.Now; _MyItem.MyContent.DTS = DateTime.Now;
break; break;
default: default:
@ -360,7 +360,7 @@ namespace Volian.Controls.Library
Dictionary<int, ContentTransition> ctReplacements = BuildCtReplacements(_MyItem.MyContent.ContentTransitions); Dictionary<int, ContentTransition> ctReplacements = BuildCtReplacements(_MyItem.MyContent.ContentTransitions);
Dictionary<int, ContentRoUsage> roUsgReplacements = BuildRoUsgReplacements(_MyItem.MyContent.ContentRoUsages); Dictionary<int, ContentRoUsage> roUsgReplacements = BuildRoUsgReplacements(_MyItem.MyContent.ContentRoUsages);
_MyItem.DTS = DateTime.Now; _MyItem.DTS = DateTime.Now;
_MyItem.UserID = Environment.UserName; _MyItem.UserID = Volian.Base.Library.VlnSettings.UserID;
// Do the Save once rather than multiple times // Do the Save once rather than multiple times
_MyItem.Save(); _MyItem.Save();
if (ctReplacements.Count > 0) if (ctReplacements.Count > 0)
@ -387,7 +387,7 @@ namespace Volian.Controls.Library
Console.WriteLine("{0} - {1}", br.Property, br.Description); Console.WriteLine("{0} - {1}", br.Property, br.Description);
} }
_MyItem.DTS = DateTime.Now; _MyItem.DTS = DateTime.Now;
_MyItem.UserID = Environment.UserName; _MyItem.UserID = Volian.Base.Library.VlnSettings.UserID;
_MyItem.Save(); _MyItem.Save();
} }
_MyItem = null; _MyItem = null;