Exemplo n.º 1
0
        private Table.Row AddRow()
        {
            Table.Row result = new Table.Row();
            for (int i = 0; i < 6; ++i)
            {
                Table.Cell cell = new Table.Cell();
                cell.cls = "simple-" + i.ToString();
                result.cells.Add(cell);
            }

            table.rows.Add(result);
            ++rowIndex;

            if (rowIndex >= config.lines)
                AddColumns();

            return result;
        }
Exemplo n.º 2
0
        private void AddTables(int a, int diff)
        {
            int b = a + diff;

            for (int i = 0; i < config.lines; ++i)
            {
                Table.Row row = new Table.Row();

                AddTableRow(row, a, i);

                Table.Cell spacer = new Table.Cell();
                spacer.cls = "spacer";
                row.cells.Add(spacer);

                AddTableRow(row, b, i);

                result.rows.Add(row);
            }
        }