Esempio n. 1
0
        public MainForm(LogController logController,
                        VideoPlayerController videoPlayerController,
                        RecognitionController recognitionController,
                        SettingsControl settingsControl)
        {
            InitializeComponent();

            _logController         = logController;
            _videoPlayerController = videoPlayerController;

            _log         = new LogControl(_logController);
            _setting     = settingsControl;
            _videoPlayer = new VideoPlayerControl(_logController, _videoPlayerController, recognitionController);

            _pnlLog.Controls.Add(_log);
            _pnlSettings.Controls.Add(_setting);
            _pnlVideo.Controls.Add(_videoPlayer);

            _logController.AddMessage("Старт программы.");
        }
Esempio n. 2
0
 public RecognitionController(VideoPlayerController videoPlayerController, LogController logController, DetectorSelector detectorSelector)
 {
     _videoPlayerController = videoPlayerController;
     _logController         = logController;
     _detectorSelector      = detectorSelector;
 }