示例#1
0
 static Schema.ConfigRoot OpenDesignerFile()
 {
     var retVal = new Schema.ConfigRoot();
     #if DEBUG
     if (App.SourceRoot != null) {
         var path = Path.Combine(App.SourceRoot, @"Config\Debug\ShomreiTorahConfig.xml");
         if (File.Exists(path))
             retVal.ReadXml(XDocument.Load(path).Root);
     }
     #endif
     return retVal;
 }
示例#2
0
 void OpenFile(string path)
 {
     CurrentPath = path;
     root = new Schema.ConfigRoot();
     root.ReadXml(XElement.Load(path));
     SetOriginal();
     Rebind();
 }
示例#3
0
 void CreateNew()
 {
     if (!ConfirmClose())
         return;
     CurrentPath = null;
     root = new Schema.ConfigRoot();
     SetOriginal();
     Rebind();
 }