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 FormatActualsAsTableRow(NFLPlayer player) { if (player.IsKicker()) { string[] pgmArray = { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, FG.ToString(CultureInfo.InvariantCulture), Pat.ToString(CultureInfo.InvariantCulture), FantasyPoints.ToString(), VarianceOut() }; var html = HtmlLib.TableRow(pgmArray); return(html); } else { string[] pgmArray = { string.Empty, string.Empty, YDp.ToString(CultureInfo.InvariantCulture), TDp.ToString(CultureInfo.InvariantCulture), YDr.ToString(CultureInfo.InvariantCulture), TDr.ToString(CultureInfo.InvariantCulture), YDc.ToString(CultureInfo.InvariantCulture), TDc.ToString(CultureInfo.InvariantCulture), string.Empty, string.Empty, FantasyPoints.ToString(), VarianceOut() }; var html = HtmlLib.TableRow(pgmArray); return(html); } }