internal void ShowVehiclesWithFilter()
        {
            VehicleGarageInfo.eVehicleCondition vehicleCondition;

            while (true)
            {
                try
                {
                    vehicleCondition = (VehicleGarageInfo.eVehicleCondition)InputValidation.EnumChoiseToInt(typeof(VehicleGarageInfo.eVehicleCondition), UserConsole.ChooseString("vehicle condition"));
                    UserConsole.Print(string.Format("All vehicles in the garage that are {0}:", vehicleCondition.ToString()));
                    UserConsole.Print(r_Garage.VehicleInGarageToString(vehicleCondition));
                    break;
                }
                catch (Exception ex)
                {
                    UserConsole.ExceptionOutput(ex);
                }
                finally
                {
                    UserConsole.PrintAndRead("Press any key to go back to vehicle menu");
                    endAction();
                }
            }

            endAction();
        }
 internal void ShowAllVehicles()
 {
     try
     {
         UserConsole.Print("All vehicals in the garage: \n");
         UserConsole.Print(r_Garage.VehicleInGarageToString());
     }
     catch (Exception ex)
     {
         UserConsole.ExceptionOutput(ex);
     }
     finally
     {
         UserConsole.PrintAndRead("Press any key to go back to vehicle menu");
         endAction();
     }
 }
Esempio n. 3
0
 internal void VehicleInfo()
 {
     UserConsole.Print(r_Garage.VehicleInfo(r_Vehicle.LicenseNumber));
     UserConsole.PrintAndRead("\nPress any key to go back to vehicle menu");
     endAction();
 }