private void button2_Click(object sender, EventArgs e) { efortRobot?.ConnectClose( ); button2.Enabled = false; panel2.Enabled = false; button1.Enabled = true; timer?.Stop( ); button3.Enabled = true; }
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; }