private void checkBox1_CheckedChanged(object sender, EventArgs e) { lock (checkBoxLock) { client.setEnabled(1, checkBox1.Checked); } }
private void checkBox1_Click(object sender, RibbonControlEventArgs e) { client.setEnabled(1, checkBox1.Checked); }
public void SetTimerState(int timerNumber, bool enabled) { client.setEnabled((byte)timerNumber, enabled); }