////////////////////////////////////////////////////////////////////////// private void LoadSettings(SettingsNode RootNode) { SettingsNode Section = RootNode.GetNode(this.Name, true); if (Section != null) { TxtProjectFile.Text = Section.GetString("ProjectFile"); TxtExtensions.Text = Section.GetString("ScriptExtensions"); foreach (IntegratorModule Mod in modules) { Mod.LoadSettings(Section); } } if (TxtExtensions.Text == "") { TxtExtensions.Text = "script inc"; } }
////////////////////////////////////////////////////////////////////////// public void LoadSettings(SettingsNode RootNode) { SettingsNode Section = RootNode.GetNode("StringTableMgr", true); if (Section == null) { return; } ProjectFile = Section.GetString("ProjectFile"); StringTableFile = Section.GetString("StringTableFile"); BackupOldFiles = Section.GetBool("BackupOldFiles"); IgnoreList.Clear(); SettingsNode IgnoreItems = Section.GetNode("IgnoreList"); if (IgnoreItems != null) { foreach (SettingsNode Node in IgnoreItems.Children) { IgnoreList.Add(Node.GetString()); } } }
////////////////////////////////////////////////////////////////////////// override public void LoadSettings(SettingsNode RootNode) { TxtOutputDir.Text = RootNode.GetString("GeshiOutputDir"); }