Exemple #1
0
 public void Initalise(string path)
 {
     if (File.Exists(path))
     {
         Entrances = SecureNotePageFile.Load(path).Entrances;
     }
     //try {
     //    Entrances = new ObservableCollection<Entrance>();
     //    using (FileStream fs = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Read)) {
     //        XmlDocument xmldoc = new XmlDocument();
     //        xmldoc.Load(fs);
     //        var xml = new XmlXamlReader();
     //        xml.AddKnowedTypes(typeof(Entrance));
     //        xml.AddKnowedTypes(typeof(Equip));
     //        xml.AddKnowedTypes(typeof(Solution));
     //        xml.Load(Instance, xmldoc);
     //    }
     //} catch { }
 }
Exemple #2
0
 public void Save(string path)
 {
     //Xml(path, this);
     SecureNotePageFile.Save(path, this);
 }