Пример #1
0
 public GameBasicInformationPageViewModel(GameInformationModel gameModel)
 {
     mGameModel = gameModel;
 }
        /// <summary>
        /// Gets all information about current game.
        /// And sets it to the ScrollViewer -> GameInformation
        /// </summary>
        /// <param name="game">Current game</param>
        private async void GetGameInformation(GameSearchResult game)
        {
            GameInformationModel gameInfo = await apiEngine.GetGame(game);

            mWindowModel.GameContent = new GameInformationPage(gameInfo);
        }
 public GameBasicInformationPage(GameInformationModel gameModel)
 {
     InitializeComponent();
     DataContext = new GameBasicInformationPageViewModel(gameModel);
 }
Пример #4
0
 public GameInformationPageViewModel(GameInformationModel model)
 {
     GameModel        = model;
     BasicInformation = new RelayCommand(ShowBasicInfo);
 }