void CheckFunctionalityAvailability() { var audioAvailable = Settings.Audio.Enabled; var videoAvailable = !(VideoViewModel.SelectedVideoSourceKind is NoVideoSourceProvider); RecordCommand.RaiseCanExecuteChanged(audioAvailable || videoAvailable); ScreenShotCommand.RaiseCanExecuteChanged(videoAvailable); }
void CheckFunctionalityAvailability() { var audioAvailable = AudioViewModel.AudioSource.AudioAvailable; var videoAvailable = VideoViewModel.SelectedVideoSourceKind != VideoSourceKind.NoVideo; RecordCommand.RaiseCanExecuteChanged(audioAvailable || videoAvailable); ScreenShotCommand.RaiseCanExecuteChanged(videoAvailable); }