Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.init_Hot();
            ComboboxList        comList = new ComboboxList();
            List <ComboboxItem> items   = comList.getList();

            this.items = items;
            this.nowChoose.DataSource            = items;
            this.nowChoose.DisplayMember         = "Text";
            this.nowChoose.ValueMember           = "Value";
            this.nowChoose.SelectedIndexChanged += new System.EventHandler(this.nowChoose_SelectedIndexChanged); // 防止初始化时触发事件
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.init_Hot();
            ComboboxList        comList = new ComboboxList();
            List <ComboboxItem> items   = comList.getList();

            this.items = items;
            this.nowChoose.DataSource            = items;
            this.nowChoose.DisplayMember         = "Text";
            this.nowChoose.ValueMember           = "Value";
            this.nowChoose.SelectedIndexChanged += new System.EventHandler(this.nowChoose_SelectedIndexChanged); // 防止初始化时触发事件


            //Excel.GetExcelToDataTableBySheet("C:\\Users\\xfwan\\Desktop\\casco\\test_excel.xls", "Overlap_延续防护进路");
            DataSet testExcel = Excel.GetExcelToDataTableBySheet("D:\\test.xls", "Overlap_延续防护进路");

            this.now_log = testExcel.Tables[0].Rows[0][0].ToString();
            Exec.run("echo 12345"); // 测试执行命令行
        }