예제 #1
0
        // Close Camera
        public void CloseCameraView()
        {
            // try to detache
            switch (vsDeviceType)
            {
            case VsDeviceType.CAMERA:
            {
                switch (vsAttachType)
                {
                case VsAttachType.ATTACH_RECEIVER:
                    vsCoreMonitor.DetachCameraView(vsDeviceName, this);
                    break;

                case VsAttachType.ATTACH_ANALYZER:
                    vsCoreMonitor.DetachCameraViewAnalyzer(vsDeviceName, this);
                    break;
                }
                break;
            }

            case VsDeviceType.CHANNEL:
            {
                switch (vsAttachType)
                {
                case VsAttachType.ATTACH_RECEIVER:
                    vsCoreMonitor.DetachChannelView(vsDeviceName, this);
                    break;

                case VsAttachType.ATTACH_ANALYZER:
                    vsCoreMonitor.DetachChannelViewAnalyzer(vsDeviceName, this);
                    break;
                }
                break;
            }
            }

            InitialViewer();
        }