private void UpdateCommands()
        {
            OpenSessionCommand.RaiseCanExecuteChanged();
            CloseSessionCommand.RaiseCanExecuteChanged();
            //TakePictureCommand.RaiseCanExecuteChanged();//TODO перепроверить
            StartLiveViewCommand.RaiseCanExecuteChanged();
            RefreshCameraCommand.RaiseCanExecuteChanged();

            SetWindowStatus(!_sessionOpened);
        }
Exemple #2
0
 public IEnumerable Handle(CloseSessionCommand command)
 {
     yield return(new CloseSessionEvent {
         Id = command.Id, Closed = command.Closed
     });
 }