Пример #1
0
        private static void printLicensePlates(Garage i_MyGarage, Garage.eVehicleStatus?i_VehicleStatusFilter = null)
        {
            List <string> licensePlatesToPrint = i_MyGarage.FilteredLicensePlatesOfVehiclesInGarage(i_VehicleStatusFilter);

            if (licensePlatesToPrint.Count == 0)
            {
                Console.WriteLine("There are no vehicles in the garage that match your search");
            }
            else
            {
                Console.WriteLine("The License Plates Of The Vehicles In The Garage Are:");
                foreach (string licensePlate in licensePlatesToPrint)
                {
                    Console.WriteLine(licensePlate);
                }
            }
        }