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; }
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); }
public void TryChangeCarStatus(string i_LicencePlate, Utilities.eCarCondition i_newCarCOndition) { getVehicleToChangeInfo(i_LicencePlate).CarCondition = i_newCarCOndition; }