Exemplo n.º 1
0
 private void GreatePlaybacks()
 {
     for (int i = 0; i < 4; i++)
     {
         IPlaybackPresenter playbackPresenter = new PlaybackPresenter(new MiniPlayBack());
         _playbackPresenters.Add(playbackPresenter);
     }
 }
Exemplo n.º 2
0
        private void CreatePresenter()
        {
            PlaybackPresenter playbackPres = new PlaybackPresenter(new MiniPlayBack());

            playbackPres.InitialTime = _view.StartTimePicker.Value;
            playbackPres.EndTime     = _view.EndTimePicker.Value;
            dynamic      id  = _view.CamerasListView.SelectedItems[0].Tag;
            ICameraModel cam = _cameraManager.GetCamera(id);

            playbackPres.Camera = cam;
            _presToAdd.AddPlayback(playbackPres);
        }
Exemplo n.º 3
0
        private void AddPlayback()
        {
            int numberFreePlace = FreePlace(_playbackPresenters.Count);
            IPlaybackPresenter playbackPresenter = new PlaybackPresenter(new MiniPlayBack());

            _playbackPresenters.Add(playbackPresenter);
            if (numberFreePlace > 0)
            {
                _view.AddPlaybackControl(playbackPresenter.GetView());
            }
            else
            {
                List <IVideoBase> list = GetPlaybackView();
                _view.AddListPlayBack(list);
            }
        }