コード例 #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);
 }