/// <summary> Создает контрол видеопроигрывателя. </summary> public VideoPlayerControl( LogController logController, VideoPlayerController videoPlayerControler, RecognitionController recognitionController) { InitializeComponent(); Dock = DockStyle.Fill; _logController = logController; _videoPlayerController = videoPlayerControler; _recognitionController = recognitionController; }
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("Старт программы."); }