Example #1
0
 public String print()
 {
     return(String.Format(@"<td>{0}</td><td>{1}</td><td>{2}</td><td class=""right"">{3}</td><td {5}>{4}</td>",
                          HtmlProtocols.ReplaceSuit(Contract),
                          Dealer,
                          HtmlProtocols.ReplaceSuit(Lead),
                          Tricks == 0 ? "=" : (Tricks > 0 ? String.Format("+{0}", Tricks) : Tricks.ToString()),
                          Score,
                          IsPositive ? "" : @"class=""right"""));
 }
Example #2
0
        public String PrintProtocols()
        {
            HtmlProtocols htmlProtocol = new HtmlProtocols();
              htmlProtocol.Title = title;

              for (int i = 0; i < boards.Count; i++) {
            htmlProtocol.Boards.Add(GetBoardResults(i));
              }

              htmlProtocol.dealsPerRound = dealsPerRound;

              return htmlProtocol.print();
        }