Exemplo n.º 1
0
        public void FillElectricVehicle(string i_PlateNum, float i_AmountToAdd)
        {
            Vehicle vehicleToChange = (FindVehicleInDB(i_PlateNum));

            if (vehicleToChange != null)
            {
                vehicleToChange.AddEnergy(i_AmountToAdd);
            }
        }
Exemplo n.º 2
0
        public void FillFuelVehicle(string i_PlateNum, int i_FuelTypeEnumIndx, float i_amountToAdd)
        {
            Vehicle vehicleToFeul = (FindVehicleInDB(i_PlateNum));

            if (vehicleToFeul != null)
            {
                vehicleToFeul.AddEnergy(i_amountToAdd, (eEnergyType)i_FuelTypeEnumIndx);
            }
        }