public void GoToRanking(int tag) { if (NetworkInterface.GetIsNetworkAvailable()) { CurrentUserTeam cut = new CurrentUserTeam(); cut.CurrentUser = currentUser; cut.Tag = tag; _navigationService.NavigateTo("RankingPage", cut); } else new MessageDialog(loader.GetString("NoConnection")).ShowAsync(); }
private async void GoToComposition() { if (NetworkInterface.GetIsNetworkAvailable()) { TeamPlayers tp = await daTeams.GetTeamComposition(_selectedTeam._links.players.href); CurrentUserTeam cut = new CurrentUserTeam(); cut.CurrentUser = currentUser; cut.CurrentTeamPLayers = tp; _navigationService.NavigateTo("CompositionPage", cut); } else new MessageDialog(loader.GetString("NoConnection")).ShowAsync(); }
public async void GoToTeam(string href) { if (NetworkInterface.GetIsNetworkAvailable()) { currentUser = await daUsers.GetUserById(currentUser.idUser); CurrentUserTeam cut = new CurrentUserTeam(); cut.CurrentTeam = await daTeams.GetTeamByLink(href); cut.CurrentUser = currentUser; _navigationService.NavigateTo("TeamPage", cut); } else new MessageDialog(loader.GetString("NoConnection")).ShowAsync(); }
private async void GoToRankings() { if (NetworkInterface.GetIsNetworkAvailable()) { CurrentUserTeam cut = new CurrentUserTeam(); cut.CurrentUser = currentUser; cut.Tag = await daTeams.GetChampionshipIdByTeamId(_selectedTeam.id); _navigationService.NavigateTo("RankingPage", cut); } else new MessageDialog(loader.GetString("NoConnection")).ShowAsync(); }
public void GoToTeam(TeamInfo t) { CurrentUserTeam cut = new CurrentUserTeam() { CurrentUser = currentUser, CurrentTeam = t }; _navigationService.NavigateTo("TeamPage", cut); }