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(); } } } }