예제 #1
0
        public void RenderDataRows(ITablePrinter tablePrinter)
        {
            List <int> cellWidths = columnsWidths;

            for (int rowIndex = 0; rowIndex < dataRowXs.Count; rowIndex++)
            {
                DataRowX row = dataRowXs[rowIndex];
                row.Render(tablePrinter, cellWidths);

                bool isLastRow = rowIndex == dataRowXs.Count - 1;

                if (!isLastRow)
                {
                    DataDataSeparator?.Render(tablePrinter);
                }
            }
        }
예제 #2
0
 public void AddDataRow(DataRowX dataRowX)
 {
     dataRowX.UpdateColumnsWidths(columnsWidths);
     dataRowXs.Add(dataRowX);
 }