Example #1
0
        public VictoryPoints(string season)
        {
            //  Part 1 - Get the Teams for the season
            _season = season;
            var ds = Utility.TflWs.TeamsDs(season);
            var dt = ds.Tables["Team"];

            _teamList = new ArrayList();
            //  Part 2 - Iterate through the teams
            foreach (DataRow dr in dt.Rows)
            {
                var t = new NflTeam(dr["TEAMID"].ToString(), season,
                                    Int32.Parse(dr["WINS"].ToString()),
                                    dr["TEAMNAME"].ToString());
                t.CountVictoryPoints();
                _teamList.Add(t);
            }
        }