Set the DTS to the Date of the Format.XML File when saving the Format record.

This commit is contained in:
Rich 2012-05-10 18:22:05 +00:00
parent 3b54c091c9
commit 640d2f7313

View File

@ -166,6 +166,8 @@ namespace VEPROMS.CSLA.Library
{
try
{
FileInfo fi = new FileInfo(path);
Dts = fi.LastWriteTime;
StreamReader srf = new StreamReader(path);
xd = new XmlDocument();
xd.Load(srf);
@ -230,6 +232,8 @@ namespace VEPROMS.CSLA.Library
rec = Format.Get(LookupFormats[fname]);
rec.Data = fmtdata;
rec.GenMac = genmacdata;
rec.DTS = Dts;
rec.UserID = Volian.Base.Library.VlnSettings.UserID;
rec = rec.Save();
}
}