private void ShowTeam(object sender, MouseButtonEventArgs e)
 {
     if (PowerRankingGrid.SelectedIndex > -1)
     {
         TeamDetail win2 = new TeamDetail(databaseName, teamSections.ElementAt(PowerRankingGrid.SelectedIndex).TeamID);
         win2.ShowDialog();
     }
 }
Пример #2
0
 private void ShowTeamDetail(object sender, MouseButtonEventArgs e)
 {
     if (TeamsLB.SelectedIndex > -1)
     {
         TeamDetail win2 = new TeamDetail(databaseName, teams.ElementAt(TeamsLB.SelectedIndex).ID);
         win2.ShowDialog();
     }
 }
Пример #3
0
        private void ShowTeamDetail(object sender, MouseButtonEventArgs e)
        {
            DataGrid d = (DataGrid)sender;

            if (d.SelectedIndex > -1 && openNextForm)
            {
                TeamDetail win2 = new TeamDetail(databaseName, standings.standings.ElementAt(d.SelectedIndex).IdTeam);
                win2.ShowDialog();
            }
        }