예제 #1
0
        private void TeamImgClicked(object sender, MouseButtonEventArgs e)
        {
            var teamName = ((Image)sender).Tag.ToString();

            var tv = new TeamView(teamName, SelectedLeague);

            tv.Owner = this;
            this.Hide();
            tv.Show();
        }
예제 #2
0
        private void TeamClicked(object sender, MouseButtonEventArgs e)
        {
            var teamName = ((TeamFixtureView)sender).txtOpponent.Text;

            var tv = new TeamView(teamName, SelectedLeague);

            tv.Owner = this;
            this.Hide();
            tv.Show();
        }
예제 #3
0
        private void ViewTeam(object sender, MouseButtonEventArgs e)
        {
            var item = sender as TableViewLarge;
            var tag  = int.Parse(item.Tag.ToString());

            var table = statFetcher.GetTable(ResultsToShow, SelectedTableType);

            var team = table[tag];

            TeamView tv = new TeamView(team.Team, SelectedLeague);

            tv.Show();
            tv.BringIntoView();
            tv.Owner = this;
            this.Hide();
        }