Esempio n. 1
0
 public static void Add(string key, string value, string description)
 {
     if (GetByKey(key) == null)
     {
         List <XmlParamter> xplist = new List <XmlParamter>();
         xplist.Add(new XmlParamter("Key", key));
         xplist.Add(new XmlParamter("Value", value));
         xplist.Add(new XmlParamter("Description", ""));
         xplist.Add(new XmlParamter("UpdateTime", DateTools.GetNow().ToString("yyyy-MM-dd HH:mm:ss")));
         XMLHelper.AddData(GetPath(), "KeyValue", xplist.ToArray());
     }
 }