Exemplo n.º 1
0
 public int Output(ProbC2.Node node, int startCell)
 {
     if (node.IsSplit)
     {
         if (node.Left.Size > 0)
         {
             startCell = Output(node.Left, startCell);
         }
         ws.Cells[row, startCell].Style.Fill.BackgroundColor.SetColor(Color.Red);
         ws.Cells[row, startCell].Value = String.Format("{0},{1}", node.SL, node.SR);
         startCell++;
         if (node.Right.Size > 0)
         {
             startCell = Output(node.Right, startCell);
         }
         return(startCell);
     }
     else
     {
         ws.Cells[row, startCell, row, startCell + node.Size - 1].Style.Border.BorderAround(OfficeOpenXml.Style.ExcelBorderStyle.Thick);
         return(startCell + node.Size);
     }
 }
Exemplo n.º 2
0
 public void Output(ProbC2.Node node)
 {
     Output(node, 1);
     row++;
 }