private void UpdateCommands() { OpenSessionCommand.RaiseCanExecuteChanged(); CloseSessionCommand.RaiseCanExecuteChanged(); //TakePictureCommand.RaiseCanExecuteChanged();//TODO перепроверить StartLiveViewCommand.RaiseCanExecuteChanged(); RefreshCameraCommand.RaiseCanExecuteChanged(); SetWindowStatus(!_sessionOpened); }
public IEnumerable Handle(CloseSessionCommand command) { yield return(new CloseSessionEvent { Id = command.Id, Closed = command.Closed }); }