From 1e1a80a05e02d3aecc7f4f5ac8715499a8eae0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Wed, 13 Dec 2023 22:11:32 +0100 Subject: [PATCH] Increased readability --- WD7UVN_HFT_2023241.Client/CRUD.cs | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/WD7UVN_HFT_2023241.Client/CRUD.cs b/WD7UVN_HFT_2023241.Client/CRUD.cs index 81e42da..782d82a 100644 --- a/WD7UVN_HFT_2023241.Client/CRUD.cs +++ b/WD7UVN_HFT_2023241.Client/CRUD.cs @@ -7,7 +7,6 @@ namespace WD7UVN_HFT_2023241.Client { public static void Customer() { - Console.Clear(); int input; while (true) @@ -34,7 +33,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Employee() { - Console.Clear(); int input; while (true) @@ -62,7 +60,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Service() { - Console.Clear(); int input; while (true) @@ -93,7 +90,6 @@ namespace WD7UVN_HFT_2023241.Client public static void MaintainerTeam() { - Console.Clear(); int input; while (true) @@ -122,7 +118,6 @@ namespace WD7UVN_HFT_2023241.Client { public static void Customer() { - Console.Clear(); foreach (Customer c in RestService.Get("/api/Customer")) { @@ -131,12 +126,12 @@ namespace WD7UVN_HFT_2023241.Client Console.WriteLine("Email: " + c.EMAIL); Console.WriteLine("Phone: " + c.PHONE); Console.WriteLine("ID of used service: " + c.SERVICE_ID); + Console.WriteLine(); } } public static void Employee() { - Console.Clear(); foreach (Employee c in RestService.Get("/api/Employee")) { @@ -146,12 +141,12 @@ namespace WD7UVN_HFT_2023241.Client Console.WriteLine("Phone: " + c.PHONE); Console.WriteLine("Maintainer team's ID: " + c.MAINTAINER_ID); Console.WriteLine("Manager's ID: " + c.MANAGER_ID); + Console.WriteLine(); } } public static void Service() { - Console.Clear(); foreach (Service c in RestService.Get("/api/Service")) { @@ -164,12 +159,12 @@ namespace WD7UVN_HFT_2023241.Client Console.WriteLine("Service domain: " + c.SERVICE_DOMAIN); Console.WriteLine("Version: " + c.VERSION); Console.WriteLine("Maintainer team's ID: " + c.MAINTAINER_ID); + Console.WriteLine(); } } public static void MaintainerTeam() { - Console.Clear(); foreach (MaintainerTeam c in RestService.Get("/api/MaintainerTeam")) { @@ -177,6 +172,7 @@ namespace WD7UVN_HFT_2023241.Client Console.WriteLine("ID: " + c.ID); Console.WriteLine("Email: " + c.EMAIL); Console.WriteLine("Leader's ID: " + c.LEADER_ID); + Console.WriteLine(); } } } @@ -185,7 +181,6 @@ namespace WD7UVN_HFT_2023241.Client { public static void Customer() { - Console.Clear(); while (true) { @@ -228,7 +223,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Employee() { - Console.Clear(); while (true) { @@ -275,7 +269,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Service() { - Console.Clear(); while (true) { @@ -334,7 +327,6 @@ namespace WD7UVN_HFT_2023241.Client public static void MaintainerTeam() { - Console.Clear(); while (true) { @@ -376,7 +368,6 @@ namespace WD7UVN_HFT_2023241.Client { public static void Customer() { - Console.Clear(); int input; while (true) @@ -439,7 +430,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Employee() { - Console.Clear(); int input; while (true) @@ -508,7 +498,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Service() { - Console.Clear(); int input; while (true) @@ -591,7 +580,6 @@ namespace WD7UVN_HFT_2023241.Client public static void MaintainerTeam() { - Console.Clear(); int input; while (true) @@ -653,7 +641,6 @@ namespace WD7UVN_HFT_2023241.Client { public static void Customer() { - Console.Clear(); int input; while (true) @@ -684,7 +671,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Employee() { - Console.Clear(); int input; while (true) @@ -715,7 +701,6 @@ namespace WD7UVN_HFT_2023241.Client public static void Service() { - Console.Clear(); int input; while (true) @@ -746,7 +731,6 @@ namespace WD7UVN_HFT_2023241.Client public static void MaintainerTeam() { - Console.Clear(); int input; while (true)