예제 #1
0
 private void SaveCentralConfig()
 {
     XmlConfig MyFilmsServer = new XmlConfig();
       MyFilmsServer.WriteXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "MyFilmsCentralConfigFile", MyFilmsCentralConfigDir.Text);
       MyFilmsServer.WriteXmlConfig("MyFilmsServer", "MyFilmsServerConfig", "SyncOnStartup", cbSyncFromServerOnStartup.Checked);
       MyFilmsServer.Save();
 }
예제 #2
0
 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);
 }