コード例 #1
0
 private void flash_cbx_CheckedChanged(object sender, EventArgs e)
 {
     if (flash_cbx.Checked)
     {
         bool retVal = tricam.SetFundusFlash(flash_cbx.Checked);
         flash_cbx.Refresh();
         FlashLightLUXValue_tbx.Enabled = true;
         ir_cbx.Checked   = false;
         ring_cbx.Checked = false;
     }
     else
     {
         bool retVal = tricam.SetFundusFlash(flash_cbx.Checked);
         flash_cbx.Refresh();
         FlashLightLUXValue_tbx.Enabled = false;
         DialogResult res = MessageBox.Show("Is Flash Light working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (res == DialogResult.Yes)
         {
             Globals.currentSettings.memoryTestStruct.FlashLight = PassStr;
         }
         else
         {
             Globals.currentSettings.memoryTestStruct.FlashLight = FailStr;
         }
     }
 }