private async void GoToPlayerMatchHistory() { IsBusy = true; List <PlayerMatchHistory> result = await OpenDotaApi.GetPlayerMatchHistory(selectedSteamUser.Account_Id); PlayerWinLose winloseResult = await OpenDotaApi.GetPlayerWinLose(selectedSteamUser.Account_Id); var playerSummaries = await SteamApi.GetPlayerSummaries(Convert.ToInt32(selectedSteamUser.Account_Id)); SteamPlayer steamPlayer = Utils.GetSteamPlayer(playerSummaries); IsBusy = false; await Navigation.PushAsync(new PlayerMatchHistoryView(result, steamPlayer, winloseResult, new PlayerMatchHistoryVM())); }
public PlayerMatchHistoryView(List <PlayerMatchHistory> matchHistories, SteamPlayer steamPlayer, PlayerWinLose playerWinlose, PlayerMatchHistoryVM vm) { InitializeComponent(); vm.SteamPlayer = steamPlayer; vm.PlayerMatchHistory = matchHistories; vm.PlayerWinLose = playerWinlose; vm.Navigation = Navigation; vm.SetIsTracked(); BindingContext = vm; NavigationPage.SetHasNavigationBar(this, false); }