Beispiel #1
0
 private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox5.SelectedItem != null)
     {
         scatterPlot2.Clear();
         BasketballTeam t = teamURLs[comboBox5.SelectedIndex];
         scatterPlot2.Add(t.teamName, 0, 0);
         foreach (Matchup m in t.Matchups)
         {
             BasketballTeam opp = t.Teams[m.Opponent];
             if (opp != null)
             {
                 scatterPlot2.Add(t.teamName, m.TeamScore, opp.OpponentPointsPerGame());
             }
         }
         scatterPlot2.Text = "Points vs. Points Allowed Per Game";
         scatterPlot2.Feed();
     }
 }