private void laserErrorMonitorCheckBox_CheckedChanged(object sender, EventArgs e) { if (laserErrorMonitorCheckBox.Checked) { setLED(laserErrorLED, true); controller.StartMonitoringLaserErrorSignal(); } if (!laserErrorMonitorCheckBox.Checked) { setLED(laserErrorLED, false); controller.StopMonitoringLaserErrorSignal(); } }