예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
파일: Vehicle.cs 프로젝트: sigalbi/Garage
 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);
 }
예제 #5
0
 public GarageLogics()
 {
     m_vehicleCollection = NewObj.NewDictionary();
 }