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(); }
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(); }
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(); }