private async Task OnGetDataCommand() { _logger.Info("Getting supported games"); if (Games == null) { Games = new ObservableCollection <GameModule>(); } var supportedGames = _gameModuleCatalog.GameModules; foreach (var game in supportedGames) { if (Games.Any(x => x.Module == game.Module)) { continue; } game.InstalledLocation = await GameLocator.Find(game.Title); game.PropertyChanged += Game_PropertyChanged; Games.Add(game); } RaisePropertyChanged(nameof(Games)); ContinueCommand.RaiseCanExecuteChanged(); }
public void SelectDate(DateTime dateTime) { _dateTime = dateTime; ContinueCommand.RaiseCanExecuteChanged(); }
private void Game_PropertyChanged(object sender, PropertyChangedEventArgs e) { ContinueCommand.RaiseCanExecuteChanged(); }