Пример #1
0
        public string DivHtml(bool showBackups, string catIn, string strPos)
        {
            var s = HtmlLib.TableOpen("BORDER=1 BORDERCOLOR=BLACK BGCOLOR=WHITE") + "\n" +
                    HtmlLib.TableRowOpen() + "\n";

            s = TeamList.Cast <NflTeam>().Aggregate(s, (current, t) => current + t.BoxHtml(showBackups, catIn, strPos));

            return(s + HtmlLib.TableRowClose() + "\n" + HtmlLib.TableClose() + "\n");
        }
Пример #2
0
        public string SeasonProjection(string metricName, IPrognosticate predictor, DateTime projectionDate)
        {
            //  Start off with the division name
            var s = HtmlLib.TableRowOpen("BGCOLOR='LIGHTGREY'") +
                    HtmlLib.TableDataAttr(HtmlLib.Font("VERDANA", NameOut(), "-1"), "ALIGN='CENTER' COLSPAN='19'") +
                    HtmlLib.TableRowClose() + "\n";

            return(TeamList.Cast <NflTeam>()
                   .Aggregate(s, (current, t) => current + t.SeasonProjection(predictor, metricName, projectionDate)));
        }
Пример #3
0
        public string DivInjuries()
        {
            var s = HtmlLib.TableOpen("BORDER=1 BORDERCOLOR=BLACK BGCOLOR=WHITE") + "\n" +
                    HtmlLib.TableRowOpen() + "\n";

            //foreach ( NflTeam t in TeamList )
            //   s += t.InjuryHtml();
            s = TeamList.Cast <NflTeam>().Aggregate(s, (current, t) => current + t.InjuryHtml());

            return(s + HtmlLib.TableRowClose() + "\n" + HtmlLib.TableClose() + "\n");
        }