Beispiel #1
0
 private void Btn_UnitConnect_Click(object sender, EventArgs e)
 {
     Lab_UnitConnecting.Visible = true;
     UnitConnectThread          = new Thread(new ParameterizedThreadStart(ConnectToUnit));
     UnitConnectThread.Start(Txt_UnitIP.Text);
     Btn_Exit.Focus();
 }
Beispiel #2
0
 //Button_Click_Start
 private void Btn_DataStartLog_Click(object sender, EventArgs e)
 {
     if (CB_Station.Checked || CB_Unit.Checked)
     {
         SQLThread = new Thread(StartLogin);
         SQLThread.Start();
         Btn_DataLogStop.Enabled  = true;
         Btn_DataStartLog.Enabled = false;
     }
     Btn_Exit.Focus();
 }