private void checkBoxBreakOnInterrupt_CheckedChanged(object sender, EventArgs e) { InterruptBreakDevices[listBoxConnectedDevices.SelectedIndex] = checkBoxBreakOnInterrupt.Checked; }