private string RookieLink(string playerType, string league) { //file:///W:/medialists/dropbox/gridstat/2018/Rookies/G1-Rookies-QB.htm return(HtmlLib.Href( $"..\\{Year}\\Rookies\\{league}-Rookies-{playerType}.htm", $"{playerType}")); }
private void RosterRpt( StringBuilder sb, string teamCode) { AddLine( sb, HtmlLib.TableDataAttr( strData: HtmlLib.Href( fileLink: TflRosterReportFileName( teamCode, offset: -1), label: "<"), strAttr: "align='center' width='20'")); AddLine( sb, HtmlLib.TableDataAttr( strData: HtmlLib.Href( fileLink: ButlerDepthChartFileName(teamCode), label: teamCode), strAttr: "align='center' colspan='4' width='100'")); AddLine( sb, HtmlLib.TableDataAttr( strData: HtmlLib.Href( fileLink: TflRosterReportFileName( teamCode, offset: 0), label: ">"), strAttr: "align='center' width='20'")); }
private string RosterLink( string playerType, string fantasyLeague) { return(HtmlLib.Href( $"..\\{Year}\\HotLists\\HotList-{fantasyLeague}-{playerType}.htm", $"{playerType}")); }
private static void TableRowOpen( StringBuilder sb, string rowName) { AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData(rowName)); AddLine(sb, HtmlLib.TableData(string.Empty)); }
private string Heading(string header) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.DivOpenClass("header row")); AddLine(sb, HtmlLib.H2(header)); AddLine(sb, HtmlLib.DivClose()); return(sb.ToString()); }
private string DefenseLink(int w, string linkName) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\defense\\{linkName}-{w:0#}.htm", $"{w:0#}")); return(sb.ToString()); }
private string SubHeading(string header) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.H3( HtmlLib.AnchorHref(header))); return(sb.ToString()); }
private void TeamCells(StringBuilder sb, string[] teamCode) { AddLine(sb, HtmlLib.TableRowOpen()); foreach (var team in teamCode) { RosterRpt(sb, team); } AddLine(sb, HtmlLib.TableRowClose()); }
private string Ace(int i) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\Roles\\Aces-{i:0#}.htm", $"{i:0#}")); return(sb.ToString()); }
private string RankingMetric(int i) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\Metrics\\MetricTable--{i:0#}.htm", $"{i:0#}")); return(sb.ToString()); }
private string WeeklyLink( int week, string folder, string fileStem) { return(HtmlLib.Href( fileLink: $"..\\{Year}\\{folder}\\{fileStem}{week:0#}.htm", label: $"{week:0#}")); }
private string PickupChart(int i) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\Projections\\Pickup-Chart-Week-{i:0#}.htm", $"{i:0#}")); return(sb.ToString()); }
private static void DivisionHeader( StringBuilder sb, string division) { AddLine(sb, HtmlLib.TableDataAttr( division, "colspan='6' align='center'")); AddLine(sb, HtmlLib.TableDataClose()); }
private string PickupSummary( int week, string leagueId) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\Projections\\Pickup-Summary-{leagueId}-Week-{week}.htm", $"{week:0#}")); return(sb.ToString()); }
private string PlayerProjection( int i, string playerType) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.Href( $"..\\{Year}\\scorecards\\{playerType}-Week-{i:0#}.htm", $"{i:0#}")); return(sb.ToString()); }
private void TopDogFor( StringBuilder sb, string position) { TableRowOpen(sb, rowName: $"{position} Top dogs"); for (int i = 1; i < 18; i++) { AddLine(sb, HtmlLib.TableData( TopDogLink(i, position))); } AddLine(sb, HtmlLib.TableRowClose()); }
private string DivisionRow() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); DivisionHeader(sb, "North"); DivisionHeader(sb, "South"); DivisionHeader(sb, "East"); DivisionHeader(sb, "West"); AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string ConferenceRow(string conference) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableDataAttr( conference, "colspan='24' align='center'")); AddLine(sb, HtmlLib.TableDataClose()); AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string TableHeader(string[] headerParams) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); foreach (var item in headerParams) { AddLine(sb, HtmlLib.TableHeader(item)); } AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string GoallineScore(int weekNo) { var sb = new StringBuilder(); AddLine( sb, HtmlLib.Href( fileLink: $"..\\{Year}\\Scores\\GLScores-{weekNo:0#}.htm", label: $"{weekNo:0#}")); return(sb.ToString()); }
private string TallyLink(int i, string tally, bool isYtd = false) { var link = $"..\\{K_TflOutputFolder}\\{tally}\\ZT{tally}{LastTwoYear()}{i:0#}"; if (isYtd) { link = $"{link}Y"; } return(HtmlLib.Href( link + ".txt", $"{i:0#}")); }
private string RoleAssignment( int weekIndex) { var sb = new StringBuilder(); AddLine( sb, HtmlLib.Href( $"..\\{Year}\\Roles\\RoleAssignments-{weekIndex:0#}.htm", $"{weekIndex:0#}")); return(sb.ToString()); }
private string PreseasonReports() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.H3( HtmlLib.AnchorHref("Preseason Reports"))); var items = new Dictionary <string, string> { { $"..\\{Year-1}\\Balance.htm", "Balance Report from last year" }, { $"..\\{Year}\\FreeAgentMarket\\faMarket.htm", "Free Agent Analysis" }, { $"..\\{Year}\\Players\\PlayersProbablyRetired-{Year}.htm ", "Auto Retired Players" }, { $"..\\{Year}\\Players\\PlayerReportsDeleted-{Year}.htm ", "Auto Deleted Player Reports" } }; AddLine(sb, HtmlLib.OrderedList(items)); AddLine(sb, HtmlLib.H4("Once Schedule Available")); items = new Dictionary <string, string> { { $"..\\{Year}\\StrengthOfSchedule.htm", "Strength Of Schedule" }, { $"..\\{Year}\\Projections\\Proj-Spread-{Year}.htm", $"{Year} Win Projections" }, { $"..\\{Year}\\Projections\\Playercsv.htm", $"{Year} Player FP Projections" }, { $"..\\{Year}\\Metrics\\MetricTable--01.htm", $"{Year} Team Metrics" }, }; AddLine(sb, HtmlLib.OrderedList(items)); return(sb.ToString()); }
private string OldRosters(string league) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData($"{league}-{Year}")); AddLine(sb, HtmlLib.TableData(OldRosterLink("QB", league))); AddLine(sb, HtmlLib.TableData(OldRosterLink("RB", league))); AddLine(sb, HtmlLib.TableData(OldRosterLink("WR", league))); AddLine(sb, HtmlLib.TableData(OldRosterLink("TE", league))); AddLine(sb, HtmlLib.TableData(OldRosterLink("PK", league))); return(sb.ToString()); }
private string Heading() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.DivOpenClass("header row")); var link = HtmlLib.Href( fileLink: "..\\tfl-out\\currstnd.txt", label: Year.ToString()); AddLine(sb, HtmlLib.H2($"Season {link}")); AddLine(sb, HtmlLib.DivClose()); return(sb.ToString()); }
private string Rookies(string league) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData($"{league}-rookies")); AddLine(sb, HtmlLib.TableData(RookieLink("QB", league))); AddLine(sb, HtmlLib.TableData(RookieLink("RB", league))); AddLine(sb, HtmlLib.TableData(RookieLink("WR", league))); AddLine(sb, HtmlLib.TableData(RookieLink("TE", league))); AddLine(sb, HtmlLib.TableData(RookieLink("PK", league))); return(sb.ToString()); }
private string PlayerProjections(string playerType) { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData($"{playerType} Projections")); for (int i = 0; i < 18; i++) { AddLine(sb, HtmlLib.TableData(PlayerProjection(i, playerType))); } AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string PickupCharts() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData("Pickup chart")); AddLine(sb, HtmlLib.TableData(string.Empty)); for (int i = 1; i < 22; i++) { AddLine(sb, HtmlLib.TableData(PickupChart(i))); } AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string NibbleTips() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData($"Nibble tips")); AddLine(sb, HtmlLib.TableData(string.Empty)); for (int i = 1; i < 18; i++) { AddLine(sb, HtmlLib.TableData(NibbleTip(i))); } AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }
private string RankingMetrics() { var sb = new StringBuilder(); AddLine(sb, HtmlLib.TableRowOpen()); AddLine(sb, HtmlLib.TableData("Ranking Metrics")); AddLine(sb, HtmlLib.TableData(string.Empty)); for (int i = 1; i < 18; i++) { AddLine(sb, HtmlLib.TableData(RankingMetric(i))); } AddLine(sb, HtmlLib.TableRowClose()); return(sb.ToString()); }