private void printResponseHeader(HeaderVialDto header) { Console.WriteLine("pag - " + numPage + "\n"); ConsoleTable.PrintLine(); ConsoleTable.PrintRow(header.N_sheet, header.Object_type, header.Id_section, header.Path_type, header.Lenght); ConsoleTable.PrintLine(); }
public void Print() { var consoleTable = new ConsoleTable(200); consoleTable.PrintLine(); consoleTable.PrintRow("Nome", "Tamanho", "Path", "Iterações", "Tempo Total", "Tempo Médio"); consoleTable.PrintLine(); consoleTable.PrintRow( FileName, FileSize.ToString(), Path, Iterations.ToString(), TotalTime.ToString(), AverageTime.ToString()); consoleTable.PrintLine(); Console.ReadLine(); }
private void printResponseRows(OutputVialDto output) { List <VialDto> list = (List <VialDto>)output.getResponse(); foreach (VialDto vial in list) { ConsoleTable.PrintRow(vial.N_sheet.ToString(), vial.ObjectType, vial.IdSection.ToString(), vial.PathType, vial.Lenght.ToString()); ConsoleTable.PrintLine(); } }
private static void GetAll() { //get the list of players from the service _playerList = _playerService.GetAll(); //create a ConsoleTable object for displaying //output like a table ConsoleTable ct = new ConsoleTable(77); Console.Clear(); Console.WriteLine(); Console.WriteLine("Players"); ct.PrintLine(); string[] headers = new[] { "Id", "First", "Last", "Team", "Age" }; if (_playerList.Any()) { ct.PrintRow(headers); ct.PrintLine(); foreach (var player in _playerList) { string[] rowData = new[] { player.Player_Id.ToString(), player.FirstName, player.LastName, player.Team, player.Age.ToString() }; ct.PrintRow(rowData); } } else { Console.WriteLine("There are no players to list. Try adding a player."); } ct.PrintLine(); Console.WriteLine(); Console.WriteLine(" Press [enter] to return to the menu."); Console.ReadLine(); }