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; }
void OpenFile(string path) { CurrentPath = path; root = new Schema.ConfigRoot(); root.ReadXml(XElement.Load(path)); SetOriginal(); Rebind(); }
void CreateNew() { if (!ConfirmClose()) return; CurrentPath = null; root = new Schema.ConfigRoot(); SetOriginal(); Rebind(); }