Example #1
0
        public List <string> ShowListOfVehicles(string i_inputFromUser) // this function shows the list of vehicles according to the filter the user has selected
        {
            List <string> listOfLicense;

            GarageLogics.CheckUserInputForShowList(i_inputFromUser);
            if (i_inputFromUser.CompareTo("NONE") == 0) // If the user did not request to filter
            {
                listOfLicense = AddToListAllLicense();
            }
            else
            {
                listOfLicense = AddToListLicenseSorted(i_inputFromUser);
            }
            return(listOfLicense);
        }
Example #2
0
        public static GarageLogics NewGarageLogics()
        {
            GarageLogics newGarageLogics = new GarageLogics();

            return(newGarageLogics);
        }