public void setHeader(BMtoKOPS.Board board) { if (board.hasPBN) { //TODO: PBN without maxs Header = String.Format(HtmlResources.ProtocolsHTMLTablePBN, board.Dealer(), //0 board.Vulnerable(), //1 GetCards("N", board), //2 GetCards("W", board), //3 ReplaceSuit("G" + (board.number % 16 + 1).ToString()), //4 GetCards("E", board), //5 GetCards("S", board), //6 ReplaceSuit("N"), //7 ReplaceSuit("S"), //8 ReplaceSuit("H"), //9 ReplaceSuit("D"), //10 ReplaceSuit("C"), //11 GetAbility("N", board), //12 GetAbility("E", board), //13 GetAbility("S", board), //14 GetAbility("W", board), //15 board.minimax != "" ? board.minimax[0] + ReplaceSuit(board.minimax[1].ToString()) : "", //16 board.minimax != "" ? (board.minimax[2] == 'D' ? ("x by " + board.minimax[3] + "; " + board.minimax.Substring(4).Replace("-", "−")) : " by " + board.minimax[2] + "; " + board.minimax.Substring(3).Replace("-", "−")) : ""// 17 ); } else { Header = String.Format(@"Dealer: {0}, Vulnerable: {1}", board.Dealer(), board.Vulnerable()); } }