示例#1
0
        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();
 }
示例#3
0
 private void Game_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     ContinueCommand.RaiseCanExecuteChanged();
 }