Exemplo n.º 1
0
        public List <string> ListVehicals(Enums.eVehicalStatus i_StatusToFilterBy)
        {
            List <string> licensePlates = new List <string>();

            foreach (KeyValuePair <int, VehicalInformation> currentVehical in r_Vehicals)
            {
                if (currentVehical.Value.VehicalStatus == i_StatusToFilterBy)
                {
                    licensePlates.Add(currentVehical.Value.Vehical.LicensePlate);
                }
            }

            return(licensePlates);
        }
Exemplo n.º 2
0
        public void                                                            ChangeVehicalStatus(string i_LicensePlate, Enums.eVehicalStatus i_NewStatus)
        {
            VehicalInformation VehicalToUpdate = FindVehical(i_LicensePlate);

            VehicalToUpdate.VehicalStatus = i_NewStatus;
        }