private void CheckScoresForWeek(int week)
        {
            NflWeek = new NFLWeek(Season, week);
            var scoreFactory = new ScoreFactory();

            var ds = Utility.TflWs.ScoresDs(Season, String.Format("{0:0#}", week));
            var dt = ds.Tables["score"];

            foreach (DataRow dr in dt.Rows)
            {
                ScoresChecked++;
                var score = scoreFactory.CreateScore(dr["SCORE"].ToString());
                if (score != null)
                {
                    score.Load(dr);
#if DEBUG
                    score.Dump();
#endif
                    if (score.IsValid())
                    {
                    }
                    else
                    {
                        Error(score);
                    }
                }
            }
        }
Example #2
0
        public void CheckScores()
        {
            if (string.IsNullOrEmpty(Season))
            {
                RosterLib.Utility.Announce("Please specify the Season and Week");
            }
            else
            {
                NflWeek = new NFLWeek(Season, Week);
                var scoreFactory = new ScoreFactory();

                var ds = Utility.TflWs.ScoresDs(Season, String.Format("{0:0#}", Week));
                var dt = ds.Tables["score"];
                foreach (DataRow dr in dt.Rows)
                {
                    ScoresChecked++;
                    var score = scoreFactory.CreateScore(dr["SCORE"].ToString());
                    if (score != null)
                    {
                        score.Load(dr);
#if DEBUG
                        //score.Dump();
#endif
                        if (score.IsValid())
                        {
                        }
                        else
                        {
                            Error(score);
                        }
                    }
                }
            }
            ReportResults(ScoresChecked, "Scores");
        }
Example #3
0
 public ScoreCount(string season)
 {
     Season = season;
     _r = new SimpleTableReport(string.Format("Score Counts : {0}", Season))
             {ColumnHeadings = true, Totals = false, DoRowNumbers = false};
     _r.AddColumn(new ReportColumn("Score Type", "SCORE", "{0,-20}"));
     _r.AddColumn(new ReportColumn("Count", "VALUE", "{0}", true));
     _dt = new DataTable();
     var sf = new ScoreFactory();
     _scoreList = sf.GetAllScoreTypes();
     Load();
 }
Example #4
0
        public ScoreCount(string season)
        {
            Season = season;
            _r     = new SimpleTableReport(string.Format("Score Counts : {0}", Season))
            {
                ColumnHeadings = true, Totals = false, DoRowNumbers = false
            };
            _r.AddColumn(new ReportColumn("Score Type", "SCORE", "{0,-20}"));
            _r.AddColumn(new ReportColumn("Count", "VALUE", "{0}", true));
            _dt = new DataTable();
            var sf = new ScoreFactory();

            _scoreList = sf.GetAllScoreTypes();
            Load();
        }
        private void CheckScoresForWeek( int week )
        {
            NflWeek = new NFLWeek(Season, week);
             var scoreFactory = new ScoreFactory();

             var ds = Utility.TflWs.ScoresDs(Season, String.Format("{0:0#}", week));
             var dt = ds.Tables["score"];
             foreach (DataRow dr in dt.Rows)
             {
            ScoresChecked++;
            var score = scoreFactory.CreateScore(dr["SCORE"].ToString());
            if (score != null)
            {
               score.Load(dr);
            #if DEBUG
               score.Dump();
            #endif
               if (score.IsValid())
               {
               }
               else
                  Error(score);
            }
             }
        }