private void MainMenu() { do { ui.ShowMainMenu(); int input = ui.AskForInteger(""); switch (input) { case 1: if (CheckGarageIsFull()) { break; } AddVehicle(); break; case 2: RemoveVehicle(); break; case 3: GetVehiclesNumbers(); break; case 4: PrintAll(); break; case 5: Seed(); break; case 6: FindVehicleByRegNr(); break; case 7: FindVehiclesByProporties(); break; case 0: Environment.Exit(0); break; default: break; } } while (true); }