Exemplo n.º 1
0
 /// <summary>
 /// 加载现有文件
 /// </summary>
 private void LoadData()
 {
     XmlDoc = new XmlDocument();
     //XmlReaderSettings setting = new XmlReaderSettings();
     //setting.IgnoreComments = true;
     //var reader = XmlReader.Create(dataPath, setting);
     //XmlDoc.Load(reader);
     XmlDoc.LoadXml(MyRijndael.Decrypt());
     //reader.Close();
 }
Exemplo n.º 2
0
 private void Save()
 {
     MyRijndael.Encrypt(XmlDoc.InnerXml);
 }