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); }
public GameInformationPageViewModel(GameInformationModel model) { GameModel = model; BasicInformation = new RelayCommand(ShowBasicInfo); }