Пример #1
0
 public void SetVideoController(VideoController videoController)
 {
     if(_videoController != null)
     {
         _videoController.FrameUpdated -= OnFrameUpdated;
     }
     _videoController = videoController;
     _videoController.FrameUpdated += OnFrameUpdated;
 }
Пример #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);
            }
        }
Пример #3
0
 public void AddVideoController(VideoController videoController)
 {
     _videoControllers.Add(videoController);
 }