Пример #1
0
 public void Write(string str, ConsoleTableSection type, int columnIndex, int rowIndex)
 {
     if (!type.HasFlag(ConsoleTableSection.Row | ConsoleTableSection.Seperator))
     {
         output.Write(Level.None, str);
     }
 }
Пример #2
0
        public void WriteDivider(ConsoleTableSection root = ConsoleTableSection.None)
        {
            AttemptUpdate();

            Printer.Write($"{RowColumnJunction}", root | ConsoleTableSection.Divider | ConsoleTableSection.Seperator, -1, -1);

            for (int colIndex = 0; colIndex < Columns.Count; colIndex++)
            {
                ConsoleTableColumn column = Columns[colIndex];
                Printer.Write(Repeat(RowSeperator.ToString(), column.Width + 1), root | ConsoleTableSection.Divider | ConsoleTableSection.Column, colIndex, -1);
                Printer.Write($"{RowColumnJunction}", root | ConsoleTableSection.Divider | ConsoleTableSection.Seperator, -1, -1);
            }

            Printer.Write("\n", root | ConsoleTableSection.Divider, -1, -1);
        }
Пример #3
0
 public void Write(string str, ConsoleTableSection type, int columnIndex, int rowIndex)
 {
     Console.Write(str);
 }