Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         ConfigSet cs = new ConfigSet("Resources/Configure.ini", true);
         cs.SetConfigValue("Timing", txtTiming.Text.ToString());
         cs.WriteConfigToFile(ConfigFile.newFile);
         MessageBox.Show("修改配置文件成功");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         ConfigSet cs = new ConfigSet("Resources/Configure.ini", true);
         //http://wl.bkse.cn/Device/DeviceDataInput
         cs.SetConfigValue("Url", txtUrlConfig.Text.ToString());
         cs.WriteConfigToFile(ConfigFile.newFile);
         MessageBox.Show("修改配置文件成功");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }