private void btnPumpOnOff_Click(object sender, EventArgs e) { if (sender == btnPumpON) { plc.SetPumpON(); } if (sender == btnPumpOFF) { plc.SetPumpOFF(); } }