private void CorneaIr_cbx_CheckedChanged(object sender, EventArgs e) { tricam.SetCorneaIR(CorneaIr_cbx.Checked); CorneaIr_cbx.Refresh(); DialogResult res = MessageBox.Show("Is Cornea IR Light working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { Globals.currentSettings.memoryTestStruct.RefractoIR = PassStr; } else { Globals.currentSettings.memoryTestStruct.RefractoIR = FailStr; } }