public string ProjectYahooPerformance( string catCode, int weekNo, [System.Runtime.InteropServices.Optional] string sPos ) { if ( String.IsNullOrEmpty( sPos ) || sPos.Equals( "PK" ) ) sPos = "*"; var nextWeek = new NFLWeek( Int32.Parse( Utility.CurrentSeason() ), weekNo, false ); var gs = new StatProjector( nextWeek ); Lister.SetScorer( gs ); Lister.StartersOnly = true; Lister.SetFormat( "weekly" ); Lister.Week = nextWeek.WeekNo; Lister.AllWeeks = false; // just the regular saeason Lister.Season = nextWeek.Season; Lister.Collect( catCode, sPos, Constants.K_LEAGUE_Yahoo ); if ( String.IsNullOrEmpty( sPos ) || sPos.Equals("*") ) sPos = "All"; FileOut = String.Format( "{0}\\Yahoo\\{1}\\{1} Projection W{2:00}", Lister.Season, sPos, Lister.Week ); var weekMaster = new WeekMaster(); FileOut = Lister.RenderProjection( FileOut, weekMaster ); FileOut = Lister.FileOut; return Lister.FileOut; }
public string ProjectYahooPerformance(string catCode, int weekNo, [System.Runtime.InteropServices.Optional] string sPos) { if (String.IsNullOrEmpty(sPos) || sPos.Equals("PK")) { sPos = "*"; } var nextWeek = new NFLWeek(Int32.Parse(Utility.CurrentSeason()), weekNo, false); var gs = new StatProjector(nextWeek); Lister.SetScorer(gs); Lister.StartersOnly = true; Lister.SetFormat("weekly"); Lister.Week = nextWeek.WeekNo; Lister.AllWeeks = false; // just the regular saeason Lister.Season = nextWeek.Season; Lister.Collect(catCode, sPos, Constants.K_LEAGUE_Yahoo); if (String.IsNullOrEmpty(sPos) || sPos.Equals("*")) { sPos = "All"; } FileOut = String.Format("{0}\\Yahoo\\{1}\\{1} Projection W{2:00}", Lister.Season, sPos, Lister.Week); FileOut = Lister.RenderProjection(FileOut); FileOut = Lister.FileOut; return(Lister.FileOut); }