Exemple #1
0
 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);
 }
Exemple #2
0
        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()));
        }