From f010b46c553646893893d131b6751453fbebe138 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 17 Nov 2021 02:01:16 +0200 Subject: [PATCH] fix: update output format --- Lab3.TouristInformationCenter/InOutUtils.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lab3.TouristInformationCenter/InOutUtils.cs b/Lab3.TouristInformationCenter/InOutUtils.cs index ab8e728..0e2025b 100644 --- a/Lab3.TouristInformationCenter/InOutUtils.cs +++ b/Lab3.TouristInformationCenter/InOutUtils.cs @@ -185,15 +185,15 @@ namespace Lab3.TouristInformationCenter return; } - Console.WriteLine(new string('-', 115)); - Console.WriteLine("| {0,20} | {1,-10} | {2,20} | {3,-10} | {4,-18} | {5,-3} | {6,-4} |", "Vardas", "Miestas", "Atsakingas", "Tipas", "Darbo dienų kiekis", "Kaina", "Turi gidą?"); - Console.WriteLine(new string('-', 115)); + Console.WriteLine(new string('-', 123)); + Console.WriteLine("| {0,-20} | {1,-10} | {2,-20} | {3,-10} | {4,18} | {5,13} | {6,-4} |", "Vardas", "Miestas", "Atsakingas", "Tipas", "Darbo dienų kiekis", "Kaina", "Turi gidą?"); + Console.WriteLine(new string('-', 123)); for (int i = 0; i < container.Count; i++) { Museum m = container.Get(i); - Console.WriteLine("| {0,20} | {1,-10} | {2, 20} | {3,-10} | {4,-18} | {5,-5:f2} | {6,-10} |", m.Name, m.City, m.Manager, m.Type, m.Workdays.Count, m.Price, m.HasGuide ? "Taip" : "Ne"); + Console.WriteLine("| {0,-20} | {1,-10} | {2,-20} | {3,-10} | {4,18} | {5,13:f2} | {6,-10} |", m.Name, m.City, m.Manager, m.Type, m.Workdays.Count, m.Price, m.HasGuide ? "Taip" : "Ne"); } - Console.WriteLine(new string('-', 115)); + Console.WriteLine(new string('-', 123)); } ///