Exemple #1
0
 public bool ModifyAttributeValue(XElement Node, string Skey, string sValue)
 {
     lock (syncRoot)
     {
         Node.SetAttributeValue(Skey, sValue);
         XmlLoadElment.Save(filePath);
         return(true);
     }
 }
Exemple #2
0
 public bool ModifyRunRecordEndTime()
 {
     lock (syncRoot)
     {
         NodeSN.SetAttributeValue("EndTime", DateTime.Now.ToString());
         XmlLoadElment.Save(filePath);
         return(true);
     }
 }
Exemple #3
0
 private bool AddAttribute(XElement Node, List <KeyAndValue> T)
 {
     lock (syncRoot)
     {
         for (int i = 0; i < T.Count; i++)
         {
             Node.SetAttributeValue(T[i].StrKey, T[i].StrValue);
         }
         Node.Save(filePath);
         XmlLoadElment.Save(filePath);
         return(true);
     }
 }