Пример #1
0
        private static void inflateMaxAir(Garage i_Garage)
        {
            Console.WriteLine("Please enter your license number:");
            string licenseNum = checkIfnotEmpty(Console.ReadLine());

            try
            {
                i_Garage.AddPSIForVehicle(licenseNum);
                Console.WriteLine("Air was added successfully");
            }
            catch (ValueOutOfRangeException ex)
            {
                Console.WriteLine(ex.Message);
            }

            catch (ArgumentException ex)
            {
                Console.WriteLine(ex.Message);
            }
        }