Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     efortRobot?.ConnectClose( );
     button2.Enabled = false;
     panel2.Enabled  = false;
     button1.Enabled = true;
     timer?.Stop( );
     button3.Enabled = true;
 }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     isReadPlc = false;
     efortRobot?.ConnectClose( );
     button2.Enabled = false;
     panel2.Enabled  = false;
     button1.Enabled = true;
     threadRead?.Abort( );
     button3.Enabled = true;
 }