コード例 #1
0
        /*public void autoExcelOut()
         * {
         *  //softwareconfig dd = new softwareconfig();
         *  string ways = way;
         *
         *  string ways1 = ways + DateTime.Now.ToString("yyyyMMddhhmmss") + ".xlsx";
         *  excelout exl = new excelout();
         *  exl.exceloutclass(ways1);
         *
         * }*/



        /*private void button2_Click(object sender, EventArgs e)
         * {
         *  //excelout();
         *
         *  //threadSyslog();
         *  //Tool_Class.DESFileClass.EncryptFile("123.txt", "234.txt", "123");
         *  //monitor read = new monitor();
         *  // //textBox4.Text = read.readconfig("mt","nem");
         *
         *  //read.writeconfig("rf", "lpset","555");
         *  //Tool_Class.config read = new Tool_Class.config();
         *  //threadMem();
         *  ///excelout dd = new excelout();
         *  // CPUMEM dd = new CPUMEM();
         *  //dd.ShowDialog();
         *  //string sql3 = "update Status_Histroy set sign = '1'";
         *
         *  //Tool_Class.IO_tool tool = new Tool_Class.IO_tool();
         *  //tool.AccessDbclass(sql3);
         *  string time = DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString();
         *  if (time == "1200")
         *  {
         *      textBox4.Text = "1";
         *  }
         *  else
         *  {
         *      textBox4.Text = "0";
         *
         *  }
         *
         *  //Tool_Class.IO_tool tool = new Tool_Class.IO_tool();
         *  tool.login("netconfig");
         *  //tool.Encryptconfig();
         *
         *  //tool.Decryptconfig();
         *  //Tool_Class.AccessDbClass1 aa = new Tool_Class.AccessDbClass1();
         *
         *
         *  ////textBox4.Text = ss.Length.ToSt//ing();
         *  //sendemail();
         *  //string sql6 = "select count(*) from Status_Histroy where para_name = 'memory_running' and create_date > "+DateTime.Now;
         *  // DataTable memwarncount = tool.DbToDatatable(sql6);
         *  ////textBox4.Text = memwarncount.Rows[0][0].ToString();
         *  //string str5 = Application.StartupPath;
         *
         *
         *
         *
         * }*/

        private void button3_Click(object sender, EventArgs e)
        {
            tool.Decryptconfig();
        }