private void button1_Click(object sender, EventArgs e) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); string time = textBox1.Text; string jb = textBox3.Text; string bj = textBox2.Text; int t = int.Parse(iplist.Rows.Count.ToString()); textBox4.Text = t.ToString(); string ip = ""; for (int i = 0; i < t - 1; i++) { ip += iplist.Rows[i].Cells[0].Value.ToString() + "=" + iplist.Rows[i].Cells[1].Value.ToString() + "=" + iplist.Rows[i].Cells[2].Value.ToString() + "=" + iplist.Rows[i].Cells[3].Value.ToString() + ";\r\n"; writeip("ip", ip); } monitor mm = new monitor(); //mm.writeconfig("rff", "ppt", "4"); tool.writeconfig("rf", "netrefresh", time); tool.writeconfig("jb", "netwarn", jb); tool.writeconfig("bj", "neterror", bj); MessageBox.Show("修改成功"); //textBox4.Text = iplist.Rows[0].Cells[0].Value.ToString() + "=" + iplist.Rows[0].Cells[1].Value.ToString() + "=" + iplist.Rows[0].Cells[2].Value.ToString() + "=" + iplist.Rows[0].Cells[3].Value.ToString() + ";"; }
public void login(string windowsname) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); tool.writeconfig("lg", "wname", windowsname); CobasITMonitor.login lg = new login(); lg.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); string time = textBox1.Text; string jb = textBox3.Text; string bj = textBox2.Text; /*int t = int.Parse(iplist.Rows.Count.ToString()); textBox4.Text = t.ToString(); string ip = ""; for (int i = 0; i < t - 1; i++) { ip += iplist.Rows[i].Cells[0].Value.ToString() + "=" + iplist.Rows[i].Cells[1].Value.ToString() + "=" + iplist.Rows[i].Cells[2].Value.ToString() + "=" + iplist.Rows[i].Cells[3].Value.ToString() + ";\r\n"; writeip("ip",ip); }*/ monitor mm = new monitor(); //mm.writeconfig("rff", "ppt", "4"); tool.writeconfig("rf", "netrefresh", time); tool.writeconfig("jb", "netwarn", jb); tool.writeconfig("bj", "neterror", bj); MessageBox.Show("修改成功"); //textBox4.Text = iplist.Rows[0].Cells[0].Value.ToString() + "=" + iplist.Rows[0].Cells[1].Value.ToString() + "=" + iplist.Rows[0].Cells[2].Value.ToString() + "=" + iplist.Rows[0].Cells[3].Value.ToString() + ";"; }
private void button1_Click(object sender, EventArgs e) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); tool.writeconfig("rf", "cpumemrefresh", time.Text); tool.writeconfig("jb", "cpuwarntime", cpuwarntime.Text); tool.writeconfig("jb", "cpuwarnvalue", cpuwarnvalue.Text); tool.writeconfig("bj", "cpuerrortime", cpuerrortime.Text); tool.writeconfig("bj", "cpuerrorvalue", cpuerrorvalue.Text); tool.writeconfig("jb", "memwarntime", memwarntime.Text); tool.writeconfig("jb", "memwarnvalue", memwarnvalue.Text); tool.writeconfig("bj", "memerrortime", memerrortime.Text); tool.writeconfig("bj", "memerrorvalue", memerrorvalue.Text); MessageBox.Show("修改成功"); }
private void button1_Click(object sender, EventArgs e) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); tool.writeconfig("rf", "cpumemrefresh", time.Text); tool.writeconfig("jb", "cpuwarntime", cpuwarntime.Text); tool.writeconfig("jb", "cpuwarnvalue", cpuwarnvalue.Text); tool.writeconfig("bj", "cpuerrortime", cpuerrortime.Text); tool.writeconfig("bj", "cpuerrorvalue", cpuerrorvalue.Text); tool.writeconfig("jb", "memwarntime", memwarntime.Text); tool.writeconfig("jb", "memwarnvalue", memwarnvalue.Text); tool.writeconfig("bj", "memerrortime", memerrortime.Text); tool.writeconfig("bj", "memerrorvalue", memerrorvalue.Text); MessageBox.Show("修改成功"); }
private void button1_Click(object sender, EventArgs e) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); tool.writeconfig("rf", "diskrefresh", time.Text); tool.writeconfig("jb", "Cwarn", cwran.Text); tool.writeconfig("jb", "Dwarn", dwran.Text); tool.writeconfig("jb", "Ewarn", ewran.Text); tool.writeconfig("jb", "Fwarn", fwran.Text); tool.writeconfig("bj", "Cerror", cerror.Text); tool.writeconfig("bj", "Derror", derror.Text); tool.writeconfig("bj", "Eerror", eerror.Text); tool.writeconfig("bj", "Ferror", ferror.Text); MessageBox.Show("修改成功"); }
private void button1_Click(object sender, EventArgs e) { int out_time = 43200; bool result = io.isNumberic(textBox1.Text.ToString(), out out_time); if (!result) { textBox1.Text = "只能输入数字,默认单位秒"; } else { io.writeconfig("IT3K_OPTION", "OPTION_CHECK", out_time.ToString()); this.Dispose(); } }
private void button1_Click(object sender, EventArgs e) { tool.writeconfig("customernode", "hospitalname", textBox1.Text); tool.writeconfig("customernode", "person", textBox2.Text); tool.writeconfig("customernode", "phone", textBox3.Text); tool.writeconfig("customernode", "emailaddress", textBox4.Text); tool.writeconfig("customernode", "customerarea", comboBox1.Text); tool.writeconfig("ip", null, null); int t = int.Parse(iplist.Rows.Count.ToString()); //textBox4.Text = t.ToString(); for (int i = 0; i < t - 1; i++) { string ipvalue = ""; string l = (i + 1).ToString(); ipvalue += iplist.Rows[i].Cells[0].Value.ToString() + "#" + iplist.Rows[i].Cells[1].Value.ToString() + "#" + iplist.Rows[i].Cells[2].Value.ToString() + "#" + iplist.Rows[i].Cells[3].Value.ToString(); tool.writeconfig("ip", l, ipvalue); } MessageBox.Show("修改成功"); }
public void login(string windowsname) { Tool_Class.IO_tool tool = new Tool_Class.IO_tool(); tool.writeconfig("lg", "wname", windowsname); CobasITMonitor.login lg = new login(); lg.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { tool.writeconfig("email", "centralad", contactlist.Rows[0].Cells[1].Value.ToString()); tool.writeconfig("email", "centralps", contactlist.Rows[0].Cells[2].Value.ToString()); tool.writeconfig("email", "centraltp", contactlist.Rows[0].Cells[3].Value.ToString()); tool.writeconfig("email", "eastad", contactlist.Rows[1].Cells[1].Value.ToString()); tool.writeconfig("email", "eastps", contactlist.Rows[1].Cells[2].Value.ToString()); tool.writeconfig("email", "easttp", contactlist.Rows[1].Cells[3].Value.ToString()); tool.writeconfig("email", "westad", contactlist.Rows[2].Cells[1].Value.ToString()); tool.writeconfig("email", "westps", contactlist.Rows[2].Cells[2].Value.ToString()); tool.writeconfig("email", "westtp", contactlist.Rows[2].Cells[3].Value.ToString()); tool.writeconfig("email", "northad", contactlist.Rows[3].Cells[1].Value.ToString()); tool.writeconfig("email", "northps", contactlist.Rows[3].Cells[2].Value.ToString()); tool.writeconfig("email", "northtp", contactlist.Rows[3].Cells[3].Value.ToString()); tool.writeconfig("email", "southad", contactlist.Rows[4].Cells[1].Value.ToString()); tool.writeconfig("email", "southps", contactlist.Rows[4].Cells[2].Value.ToString()); tool.writeconfig("email", "southtp", contactlist.Rows[4].Cells[3].Value.ToString()); tool.writeconfig("email", "localad", textBox3.Text.ToString()); tool.writeconfig("email", "localadpassword", textBox4.Text.ToString()); MessageBox.Show("修改成功"); }
private void button1_Click(object sender, EventArgs e) { tool.writeconfig("rf", "syslogrefresh", textBox1.Text); MessageBox.Show("修改成功"); }
private void button1_Click(object sender, EventArgs e) { io.writeconfig("TABLE_CHECK", "TABLE_NUM_1", textBox1.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_2", textBox2.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_3", textBox3.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_4", textBox4.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_5", textBox5.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_6", textBox6.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_7", textBox7.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_8", textBox8.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_9", textBox9.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_10", textBox10.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_11", textBox11.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_12", textBox12.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_13", textBox13.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_14", textBox14.Text); io.writeconfig("TABLE_CHECK", "TABLE_NUM_CHECK", textBox15.Text); this.Dispose(); }