private void trigger_cbx_CheckedChanged(object sender, EventArgs e)
 {
     if (trigger_cbx.Checked)
     {
         tricam.stopLiveMode();
         tricam.trigger_LeftRightTimer.Start();
         if (ir_cbx.Checked || flash_cbx.Checked || ring_cbx.Checked)
         {
             ir_cbx.Checked = flash_cbx.Checked = ring_cbx.Checked = false;
         }
     }
     else
     {
         DialogResult res = MessageBox.Show("Is Trigger Working ?", "CalibrationTool", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (res == DialogResult.Yes)
         {
             Globals.currentSettings.memoryTestStruct.Trigger = PassStr;
         }
         else
         {
             Globals.currentSettings.memoryTestStruct.Trigger = FailStr;
         }
         if (leftRight_cbx.Checked == false)
         {
             tricam.trigger_LeftRightTimer.Stop();
             tricam.startLiveMode();
         }
     }
 }
Exemple #2
0
 private void IlliuminationGrid()
 {
     if (illuminationGrid_cbx.Checked)
     {
         Globals.isIlluminationGrid = true;
         f.Publish(f.DisableBrowseBtn, args);
         tricam.stopLiveMode();
         args         = new Args();
         args["page"] = Globals.mode.isFundusAlignment;
         f.Publish(f.SET_DISPLAY_AREA, args);
         SaveImage_IlluminationGrid_btn.Enabled = true;
         //if (Globals.browseBtnClicked)
         //{
         //    Globals.isHighResolution = false;
         //}
         tricam.startLiveMode();
     }
     else
     {
         Globals.isIlluminationGrid = false;
         f.Publish(f.DisableBrowseBtn, args);
         tricam.stopLiveMode();
         args         = new Args();
         args["page"] = Globals.mode.isFundusAlignment;
         f.Publish(f.SET_DISPLAY_AREA, args);
         SaveImage_IlluminationGrid_btn.Enabled = false;
         tricam.startLiveMode();
     }
 }
        private void LensArtifactMeasurementMode(string s, Args arg)
        {
            Globals.isHighResolution = false;
            IrMode_rb.Checked        = true;

            Globals.digitalGain = 50;
            tricam.setDigitalGain();
            tricam.startLiveMode();
            resume_btn.Enabled            = false;
            isLACod_cbx.Checked           = false;
            grading_btn.Visible           = false;
            whiteLightCapture_btn.Visible = true;
            ModeSelection_gbx.Enabled     = true;
            //IrMode_rb_CheckedChanged(null, null);
            if (Globals.browseBtnClicked)
            {
                tricam.stopLiveMode();
                whiteLightMode_rb.Checked = true;
                f.Publish(f.GradingStill, null);
                whiteLightMode_rb.Checked     = false;
                grading_btn.Visible           = true;
                whiteLightCapture_btn.Visible = false;
                resume_btn.Enabled            = true;
                ModeSelection_gbx.Enabled     = false;
            }
            //else if (IrMode_rb.Checked)
            //{
            //    Globals.isHighResolution = false;
            //    IrMode_rb.Checked = true;
            //    //IRGradingCapture();
            //}
            else if (whiteLightMode_rb.Checked)
            {
                whiteGradingCapture();
            }

            //Recommanded range for Avg peak is only for white light, so disabling when IR selected
            if (tricam.isLiveMode())
            {
                if (IrMode_rb.Checked)
                {
                    if (LA_avgPeakRange_lbl.Visible)
                    {
                        LA_avgPeakRange_lbl.Visible = false;
                        LA_avgPeakRange_lbl.Refresh();
                    }
                }
                else
                {
                    if (LA_avgPeakRange_lbl.Visible)
                    {
                        LA_avgPeakRange_lbl.Visible = true;
                        LA_avgPeakRange_lbl.Refresh();
                    }
                }
            }
        }
Exemple #4
0
 private void IrMode_rb_CheckedChanged(object sender, EventArgs e)
 {
     if (IrMode_rb.Checked)
     {
         tricam.stopLiveMode();
         Globals.isHighResolution = !IrMode_rb.Checked;
         tricam.startLiveMode();
     }
     else
     {
         tricam.stopLiveMode();
         Globals.isHighResolution = !IrMode_rb.Checked;
         tricam.startLiveMode();
     }
 }
 private void calc_btn_Click(object sender, EventArgs e)
 {
     tricam.stopLiveMode();
     DoRingCalculations();
 }