Exemplo n.º 1
0
        public void Team_Tapped(object sender, TappedRoutedEventArgs e)
        {
            var textBlock = sender as TextBlock;
            var parameter = new TeamNavigationParameter();

            parameter.Team = textBlock.Text.Equals(Match.HomeTeam.participant.name)
                ? Match.HomeTeam
                : Match.GuestTeam;
            parameter.TournamentFK = _tournamentFK;
            NavigationService.Navigate(typeof(Views.TeamPage), parameter);
        }
Exemplo n.º 2
0
        public void FavouriteTeamTapped(object sender, ItemClickEventArgs e)
        {
            var team      = e.ClickedItem as FavouriteTeam;
            var parameter = new TeamNavigationParameter()
            {
                Team = new Common.DataModels.EventModels.EventParticipant()
                {
                    participant = new Common.DataModels.StandingModels.Participant()
                    {
                        name = team.Name
                    },
                    participantFK = team.ParticipantId,
                    id            = team.Id
                },
                TournamentFK = team.LeagueId
            };

            NavigationService.Navigate(typeof(Views.TeamPage), parameter);
        }
        public void OnLeagueTableItemClicked(object sender, ItemClickEventArgs e)
        {
            var leagueTableItem = e.ClickedItem as LeagueTableView;
            var parameter       = new TeamNavigationParameter()
            {
                Team = new EventParticipant()
                {
                    participant = new Participant()
                    {
                        name = leagueTableItem.TeamName
                    },
                    participantFK = leagueTableItem.TeamParticipantFK,
                    id            = leagueTableItem.TeamId
                },
                TournamentFK = TournamentStage
            };

            NavigationService.Navigate(typeof(Views.TeamPage), parameter);
        }