public Show_details(string para_name) { InitializeComponent(); string db_dir = System.Windows.Forms.Application.StartupPath + "\\db.accdb"; IO_tool io = new IO_tool(); string SQL_stat = "select details from Status_Now where para_name = '" + para_name + "'"; DataTable dt = io.DbToDatatable(SQL_stat, db_dir); DataSet ds = new DataSet(); ds.Tables.Add(dt); string list_box_text = ds.Tables[0].Rows[0].ItemArray[0].ToString(); textBox1.Text = list_box_text; }
void recommeded_value() { Tool_Class.IO_tool tool = new IO_tool(); string l61 = tool.readconfig("jb", "netwarn"); string disk_c = tool.readconfig("jb", "Cwarn"); string disk_d = tool.readconfig("jb", "Dwarn"); string disk_e = tool.readconfig("jb", "Ewarn"); string disk_f = tool.readconfig("jb", "Fwarn"); string cpu = tool.readconfig("jb", "cpuwarnvalue"); string memery = tool.readconfig("jb", "memwarnvalue"); label61.Text = "连通不通次数少于" + l61 + "次"; label62.Text = "C>" + disk_c + "G;" + "D>" + disk_d + "G;" + "\n\r" + "E>" + disk_e + "G;" + "F>" + disk_f + "G;"; label63.Text = "使用率低于" + cpu + "%"; }