private void PrintListType(List <int> ColumnsMaxLengths) { EliteConsole.PrintInfo(Spacer); for (int i = 0; i < Columns.Count; i++) { EliteConsole.PrintInfo(Columns[i]); EliteConsole.PrintInfo(new String(' ', ColumnsMaxLengths[i] - Columns[i].Length + 1)); } EliteConsole.PrintInfoLine(); EliteConsole.PrintInfo(Spacer); for (int i = 0; i < Columns.Count; i++) { EliteConsole.PrintInfo(new String('-', Columns[i].Length)); EliteConsole.PrintInfo(new String(' ', ColumnsMaxLengths[i] - Columns[i].Length + 1)); } EliteConsole.PrintInfoLine(); foreach (List <string> row in Rows) { EliteConsole.PrintInfo(Spacer); for (int i = 0; i < row.Count; i++) { EliteConsole.PrintInfo(row[i]); EliteConsole.PrintInfo(new String(' ', ColumnsMaxLengths[i] - row[i].Length + 1)); } EliteConsole.PrintInfoLine(); } }
private void PrintParameterType(List <int> ColumnsMaxLengths) { EliteConsole.PrintInfo(Spacer); EliteConsole.PrintHighlightLine(this.Title); EliteConsole.PrintInfo(Spacer); EliteConsole.PrintInfoLine(new String('=', ColumnsMaxLengths.Sum() + Columns.Count - 1)); foreach (List <string> row in Rows) { EliteConsole.PrintInfo(Spacer); for (int i = 0; i < row.Count; i++) { EliteConsole.PrintInfo(row[i]); EliteConsole.PrintInfo(new String(' ', ColumnsMaxLengths[i] - row[i].Length + 1)); } EliteConsole.PrintInfoLine(); } }