Exemple #1
0
 private void button_start_Click(object sender, EventArgs e)
 {
     OPC_S7.connectServer();
     //OPC_S7.writeSyn();
     this.db2 = new databaseSQL();
     this.db2.SSHConnectMySql();
 }
Exemple #2
0
 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进程
     textBox_log.Text = "创建lppa.exe进程\r\n";
     if (!textBox_path.Text.Trim().Equals(""))
     {
         timer1.Enabled         = true;
         button_start.Enabled   = false;
         button_selfile.Enabled = false;
         button_stop.Enabled    = true;
     }
     else
     {
         MessageBox.Show("请指定一个打印CS模板文件!");
         this.textBox_path.Focus();
         return;
     }
 }