private void SaveCentralConfig() { XmlConfig myFilmsServer = new XmlConfig(); myFilmsServer.WriteXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "MyFilmsCentralConfigFile", MyFilmsCentralConfigDir.Text); myFilmsServer.WriteXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "SyncOnStartup", cbSyncFromServerOnStartup.Checked); myFilmsServer.Save(); }
private void CentralConfigSetup_Load(object sender, EventArgs e) { XmlConfig myFilmsServer = new XmlConfig(); MyFilmsCentralConfigDir.Text = myFilmsServer.ReadXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "MyFilmsCentralConfigFile", ""); cbSyncFromServerOnStartup.Checked = myFilmsServer.ReadXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "SyncOnStartup", false); }