public List <string> ShowFullDataOfVehicle(string i_inputLincesFromUser) // this function return a list of full data of a vehicle { Owner_Details owner; List <string> AllDetailsToPrint = NewObj.NewList(); Vehicle.CheckLincesNumber(i_inputLincesFromUser); owner = GetOwner(i_inputLincesFromUser); owner.GetDetailesOwner(AllDetailsToPrint); return(AllDetailsToPrint); }
public List <string> AddToListAllLicense() // this function add to the list of vehicles { List <string> listOfLicense = NewObj.NewList(); foreach (KeyValuePair <string, Owner_Details> Owners in m_vehicleCollection) { listOfLicense.Add(Owners.Value.ownerVehicle.lincesNumber); } return(listOfLicense); }
public List <string> AddToListLicenseSorted(string i_inputFromUser) // this function add to the filter list of vehicles { List <string> listOfLicense = NewObj.NewList(); Owner_Details.eVehicleStatus statusOfVehicale; statusOfVehicale = (Owner_Details.eVehicleStatus)Enum.Parse(typeof(Owner_Details.eVehicleStatus), i_inputFromUser); foreach (KeyValuePair <string, Owner_Details> Owners in m_vehicleCollection) { if (Owners.Value.currentVehicleStatus == statusOfVehicale) { listOfLicense.Add(Owners.Value.ownerVehicle.lincesNumber); } } return(listOfLicense); }
public Vehicle(int numberOfWheel, float i_maxAirPressure, string i_typeOfengine, float i_maxOfQuantity, string i_typeOfGasolin = "NONE") { m_engine = NewObj.NewEngine(i_typeOfengine, i_maxOfQuantity, i_typeOfGasolin); wheels = NewObj.MAkeNewWeels(numberOfWheel, i_maxAirPressure); }
public GarageLogics() { m_vehicleCollection = NewObj.NewDictionary(); }