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