public bool ModifyAttributeValue(XElement Node, string Skey, string sValue) { lock (syncRoot) { Node.SetAttributeValue(Skey, sValue); XmlLoadElment.Save(filePath); return(true); } }
public bool ModifyRunRecordEndTime() { lock (syncRoot) { NodeSN.SetAttributeValue("EndTime", DateTime.Now.ToString()); XmlLoadElment.Save(filePath); return(true); } }
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); } }