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); }