Ejemplo n.º 1
0
        public void displayLicenseNumbersList()
        {
            Vehicle.eVehicleGarageStatus vehicleStatus = m_LicenseNumberFilter.GetFilter();
            List <string> licenseNumbers;

            if (vehicleStatus.Equals(Vehicle.eVehicleGarageStatus.Undefined))
            {
                licenseNumbers = m_Garage.GetLicenseNumberList();
            }
            else
            {
                licenseNumbers = m_Garage.GetLicenseNumberList(vehicleStatus);
            }

            m_UserDisplay.Clear();
            m_UserDisplay.DisplayAccordingToSize(licenseNumbers, "There are no vehicles for your choice in the garage", "The list of plates that you requested: ");
            Console.ReadLine();
        }