public static void StartGarageConsole() { string read; do { read = mainMenuChoice(); if (checkReadFromUser(read, 7)) { switch (int.Parse(read)) { case 1: { AddVeichleToGarageConsole.AddVeichleToGarageMenu(); break; } case 2: { DetaileOfVeichle.getListOfAllLiecenceInTheGarage(); break; } case 3: { FixVeichle.ChangeVehicleStatus(); break; } case 4: { FixVeichle.inflateTires(); break; } case 5: { FixVeichle.fuelCarWithGas(); break; } case 6: { FixVeichle.chargeBattery(); break; } case 7: { DetaileOfVeichle.getFullInfoAboutVeichleByLiecenceID(); break; } } } } while (true); }
public static void Garage() { string read; do { read = mainMenuChoice(); // if (read == "Q" || !int.TryParse(read, out int result) || result < 1 || result > 7) //checkIfQ(read); if (checkReadFromUser(read, 7)) { switch (int.Parse(read)) { case 1: AddVeichleToGarageConsole.AddVeichleToGarage(); break; case 2: DetailesOfVeicheleConsole.getListOfAllLiecenceInTheGarage(); break; case 3: ChangeStatus.ChangeVehicleStatus(); break; //case 4: // { // inflateTires(); // break; // } //case 5: // { // fuelCarWithGas(); // break; // } //case 6: // { // 7.getFullInfoAboutVeichleByLiecenceID(); // break; // } //case 7: // { // addVeichleToGarage(out fullNameCustomer, out phoneCustomer); // break; // } } } } while (true); }