Chnaged code to support ability to make working draft a multiunit working draft

Changed History Start Date property of revision configuration to 24 hour format
This commit is contained in:
Rich 2014-05-22 00:38:18 +00:00
parent 99d6f75735
commit f7806951c9
2 changed files with 7 additions and 2 deletions

View File

@ -1714,6 +1714,11 @@ OnPropertyChanged("Default_BkColor");
xd.LoadXml(xml);
XmlNode pn = _Xp.XmlContents.SelectSingleNode("//Slaves");
XmlNode nn = _Xp.XmlContents.ImportNode(xd.DocumentElement, true);
if (pn == null)
{
pn = _Xp.XmlContents.CreateElement("Slaves");
_Xp.XmlContents.DocumentElement.AppendChild(pn);
}
pn.AppendChild(nn);
}
public void RemoveSlave(int index)

View File

@ -79,8 +79,8 @@ namespace VEPROMS.CSLA.Library
set
{
string s = _Xp["History", "StartDate"];
if (s == value.ToString("MM/dd/yyyy hh:mm:ss")) return;
_Xp["History", "StartDate"] = value.ToString("MM/dd/yyyy hh:mm:ss");
if (s == value.ToString("MM/dd/yyyy HH:mm:ss")) return;
_Xp["History", "StartDate"] = value.ToString("MM/dd/yyyy HH:mm:ss");
OnPropertyChanged("History_StartDate");
}
}