private void ir_cbx_CheckedChanged(object sender, EventArgs e) { if (ir_cbx.Checked) { tricam.SetIR(ir_cbx.Checked); ir_cbx.Refresh(); flash_cbx.Checked = false; ring_cbx.Checked = false; } else { tricam.SetIR(ir_cbx.Checked); ir_cbx.Refresh(); DialogResult res = MessageBox.Show("Is IR Light working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { Globals.currentSettings.memoryTestStruct.IRLight = PassStr; } else { Globals.currentSettings.memoryTestStruct.IRLight = FailStr; } } }