Example #1
0
        public void setLiveScreen()
        {
            if (ImagingViewControls_p.Controls.Contains(viewImagingControl))
            {
                ImagingViewControls_p.Controls.Remove(viewImagingControl);
                viewImagingControl.noImageSelected_lbl.Visible = false;
            }
            if (liveImagingControl == null)
            {
                liveImagingControl      = new LiveImageControls_UC();
                liveImagingControl.Dock = DockStyle.Fill;
            }
            if (!ImagingViewControls_p.Contains(liveImagingControl))
            {
                updateOverlay("", new Args());
                ImagingViewControls_p.Controls.Add(liveImagingControl);
                liveImagingControl.Refresh();
            }


            toolStrip1.Visible = true;
            liveImagingControl.SetCurrentMode((ImagingMode)IVLVariables._ivlConfig.Mode);
            isImaging = true;
        }
Example #2
0
        public void setViewScreen()
        {
            if (this.InvokeRequired)
            {
                this.Invoke(m_DelegateSetView);
            }
            else
            {
                if (ImagingViewControls_p.Controls.Contains(liveImagingControl))
                {
                    ImagingViewControls_p.Controls.Remove(liveImagingControl);
                }
                if (viewImagingControl == null)
                {
                    viewImagingControl      = new ViewImageControls_UC();
                    viewImagingControl.Dock = DockStyle.Fill;
                    viewImagingControl.noImageSelected_lbl = NoImageSelected_lbl;
                }
                else
                {
                    if (viewImagingControl.noImageSelected_lbl.Visible)
                    {
                        viewImagingControl.noImageSelected_lbl.Visible = false;
                    }
                    this.viewImagingControl.ZoomModifier_color(true);
                }
                //overlay_pbx.Visible = Convert.ToBoolean(IVLVariables.CurrentSettings.PostProcessingSettings.MaskSettings._ApplyLiveMask.val);
                // overlayRetinal_pbx.Visible = false;
                // motorSensor_tbpnl.Visible = false;//This line was added by darshan to implement the CR:
                //statusStrip1.Visible = false;
                if (IVLVariables.ivl_Camera.CameraIsLive)//To set the view screen, checking for thew live mode and to stop live mode.
                {
                    IVLVariables.ivl_Camera.StopLive();
                }

                if (!ImagingViewControls_p.Contains(viewImagingControl))
                {
                    ImagingViewControls_p.Controls.Clear();
                    ImagingViewControls_p.Controls.Add(viewImagingControl);
                }
                if (!IVLVariables.isCommandLineAppLaunch)
                {
                    viewImagingControl.showExisitingReports();
                }
                maskOverlay_Pbx.Visible = false;
                //if (this.Controls.Contains(maskOverlay_pbx))
                //    this.Controls.Remove(maskOverlay_pbx);
                //maskOverlay_pbx.Visible = false;// overlay if present//issue no 0001644: Some unwanted black patch appearing on image in View image screen has been fixed by kishore on August 11 2017 at 4:50 pm.

                overlay_pbx.Visible = false;
                //overlay_pbx.Dock = DockStyle.None;
                isImaging = false;
                bool isPowerCameraConnected = IVLVariables.ivl_Camera.isCameraOpen && IVLVariables.ivl_Camera.camPropsHelper.IsCameraConnected == Devices.CameraConnected && IVLVariables.ivl_Camera.camPropsHelper.IsBoardOpen && IVLVariables.ivl_Camera.camPropsHelper.IsPowerConnected == Devices.PowerConnected;
                if (isPowerCameraConnected)
                {
                    if (IVLVariables.isCommandLineAppLaunch)
                    {
                        IVLVariables.ivl_Camera.TriggerOn();
                    }
                    else if (INTUSOFT.Data.Repository.NewDataVariables.Active_Visit.createdDate.Date == DateTime.Now.Date)
                    {
                        IVLVariables.ivl_Camera.TriggerOn();
                    }
                }
            }
        }