private void ring_cbx_CheckedChanged(object sender, EventArgs e) { if (!Globals.isRoyal) { if (ring_cbx.Checked) { tricam.SetCorneaWhiteRing(ring_cbx.Checked); ring_cbx.Refresh(); flash_cbx.Checked = false; ir_cbx.Checked = false; } else { tricam.SetCorneaWhiteRing(ring_cbx.Checked); ring_cbx.Refresh(); DialogResult res = MessageBox.Show("Is Cornea White Light working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { Globals.currentSettings.memoryTestStruct.WhiteLightRing = PassStr; } else { Globals.currentSettings.memoryTestStruct.WhiteLightRing = FailStr; } } } else { tricam.SetBaloonLight(ring_cbx.Checked); DialogResult res = MessageBox.Show("Is Baloon Light working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { Globals.currentSettings.memoryTestStruct.BaloonLight = PassStr; } else { Globals.currentSettings.memoryTestStruct.BaloonLight = FailStr; } } }