public LinkedList <string> ShowLicenseNumbersByFilter(Customer.eVehicleStatus i_VehicleStatusFilter) { // this method gets a status to filter the license numbers according to and adding the fit vehicles to the list. LinkedList <string> listOFNumbersToShow = new LinkedList <string>(); foreach (Customer customer in m_Customers.Values) { if (customer.VehicleStatus == i_VehicleStatusFilter) { listOFNumbersToShow.AddFirst(customer.Vehicle.LicenseNumber); } } return(listOFNumbersToShow); }
public void ChangeVehicleStatus(string i_LicenseNumber, Customer.eVehicleStatus i_VehicleStatusToChange) { // this method get a license number and a new status and changing the vehicle status. m_Customers[i_LicenseNumber.GetHashCode()].VehicleStatus = i_VehicleStatusToChange; }