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); } } }
public void AddDataRow(DataRowX dataRowX) { dataRowX.UpdateColumnsWidths(columnsWidths); dataRowXs.Add(dataRowX); }