public string FormatAsTableRow(string playerName, string role, decimal pts) { string[] pgmArray = { playerName, role, ProjYDp.ToString(CultureInfo.InvariantCulture), ProjTDp.ToString(CultureInfo.InvariantCulture), ProjYDr.ToString(CultureInfo.InvariantCulture), ProjTDr.ToString(CultureInfo.InvariantCulture), ProjYDc.ToString(CultureInfo.InvariantCulture), ProjTDc.ToString(CultureInfo.InvariantCulture), ProjFG.ToString(CultureInfo.InvariantCulture), ProjPat.ToString(CultureInfo.InvariantCulture), YDp.ToString(CultureInfo.InvariantCulture), TDp.ToString(CultureInfo.InvariantCulture), YDr.ToString(CultureInfo.InvariantCulture), TDr.ToString(CultureInfo.InvariantCulture), YDc.ToString(CultureInfo.InvariantCulture), TDc.ToString(CultureInfo.InvariantCulture), FG.ToString(CultureInfo.InvariantCulture), Pat.ToString(CultureInfo.InvariantCulture), pts.ToString(CultureInfo.InvariantCulture) }; var html = HtmlLib.TableRow(pgmArray); return(html); }
public string FormatProjectionsAsTableRow(NFLPlayer player) { if (player.IsKicker()) { string[] pgmArray = { player.PlayerName, player.RoleOut(), string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, ProjFG.ToString(CultureInfo.InvariantCulture), ProjPat.ToString(CultureInfo.InvariantCulture), ProjectedFantasyPoints.ToString() }; var html = HtmlLib.TableRow(pgmArray); return(html); } else { string[] pgmArray = { player.PlayerName, player.RoleOut(), ProjYDp.ToString(CultureInfo.InvariantCulture), ProjTDp.ToString(CultureInfo.InvariantCulture), ProjYDr.ToString(CultureInfo.InvariantCulture), ProjTDr.ToString(CultureInfo.InvariantCulture), ProjYDc.ToString(CultureInfo.InvariantCulture), ProjTDc.ToString(CultureInfo.InvariantCulture), string.Empty, string.Empty, ProjectedFantasyPoints.ToString() }; var html = HtmlLib.TableRow(pgmArray); return(html); } }