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