Esempio n. 1
0
 public OwnerDetails(string i_OwnerName, string i_OwnerPhone, Vehicle i_Vehicle)
 {
     m_OwnerName     = i_OwnerName;
     m_OwnerPhone    = i_OwnerPhone;
     m_Vehicle       = i_Vehicle;
     m_CarCondoition = Utilities.eCarCondition.IN_FIX;
 }
Esempio n. 2
0
        public List <OwnerDetails> ModifyListBySituation(Utilities.eCarCondition i_carConditionRequested)
        {
            List <OwnerDetails> copiedListToModify = new List <OwnerDetails>();

            foreach (OwnerDetails owner in m_AllVehicleInTheGarage)
            {
                if (owner.CarCondition == i_carConditionRequested)
                {
                    copiedListToModify.Add(owner);
                }
            }

            return(copiedListToModify);
        }
Esempio n. 3
0
 public void TryChangeCarStatus(string i_LicencePlate, Utilities.eCarCondition i_newCarCOndition)
 {
     getVehicleToChangeInfo(i_LicencePlate).CarCondition = i_newCarCOndition;
 }