Ejemplo n.º 1
0
        public void ShowLicenseNumberVehicle()
        {
            m_UI.PrintMessage(Messages.AskingAllOrByStatus);
            int    statusNumber;
            string statusNumberString = m_UI.GetInput();

            if (!m_Validator.CheckIfInputIsNumber(statusNumberString, out statusNumber))
            {
                throw new FormatException(Messages.FormatMessages);
            }
            else
            {
                if (!m_Validator.CheckIfNumberInRangeOfNewStatus(ref statusNumber))
                {
                    ShowAllLicenseNumberVehicle();
                }
                else
                {
                    ShowLicenseNumberByStatus((eVehicleStatus)statusNumber);
                }
            }
        }