private void button_start_Click(object sender, EventArgs e) { flag = true; this.db2 = new databaseSQL(); this.db2.SSHConnectMySql(); //this.labelapp = new LabelManager2.Application(); //创建lppa.exe进程 //this.btEngine = new Engine(); //this.btEngine.Start();//启动BT引擎 this.btapp = new BarTender.Application(); textBox_log.Text = "启动BT引擎\r\n"; if (!textBox_path.Text.Trim().Equals("")) { //timer1.Enabled = true; task_thread = new Thread(get_task); task_thread.IsBackground = true; task_thread.Start(); button_start.Enabled = false; button_selfile.Enabled = false; button_stop.Enabled = true; } else { MessageBox.Show("请指定一个打印BT模板文件!"); this.textBox_path.Focus(); return; } }