public void LoadGUIConfig(string Config) { try { ConfLoader CL = new ConfLoader(Config); this.MasterAutorization.Text = CL.LoadConfig("MasterAutorization"); this.MasterServerName.Text = CL.LoadConfig("MasterServerName"); this.MasterDBName.Text = CL.LoadConfig("MasterDBName"); this.MasterUserName.Text = CL.LoadConfig("MasterDBUser"); this.MasterPassword.Text = CL.LoadConfig("MasterDBPassword"); this.SlaveAutorization.Text = CL.LoadConfig("SlaveAutorization"); this.SlaveServerName.Text = CL.LoadConfig("SlaveServerName"); this.SlaveDBName.Text = CL.LoadConfig("SlaveDBName"); this.SlaveUserName.Text = CL.LoadConfig("SlaveDBUser"); this.SlavePassword.Text = CL.LoadConfig("SlaveDBPassword"); this.AdminEmail.Text = CL.LoadConfig("AdminEmail"); this.SchemeName.Text = CL.LoadConfig("SchemeName"); this.Timer.Text = CL.LoadConfig("Timer"); } catch (System.IO.FileNotFoundException) { SaveConfig(this.Config); } catch (System.Xml.XmlException) { SaveConfig(this.Config); } }