public void SetVideoController(VideoController videoController)
 {
     if(_videoController != null)
     {
         _videoController.FrameUpdated -= OnFrameUpdated;
     }
     _videoController = videoController;
     _videoController.FrameUpdated += OnFrameUpdated;
 }
Esempio n. 2
0
        private void CreateSubWindows()
        {
            foreach (AbstractCamera camera in _cameraController.Cameras)
            {
                VideoController videoController = new VideoController(camera);
                _captureController.AddVideoController(videoController);

                CameraWindow wnd = new CameraWindow();
                wnd.Title = camera.Name;
                wnd.SetVideoController(videoController);
                wnd.Show();
                _windows.Add(wnd);
            }
        }
 public void AddVideoController(VideoController videoController)
 {
     _videoControllers.Add(videoController);
 }