private void btnSCR_OnOff_Click(object sender, EventArgs e) { if (sender == btnSCR_On) { plc.SetSCROn(); } if (sender == btnSCR_Off) { plc.SetSCROff(); } }