コード例 #1
0
        private static void refeulFuelVehicle(GarageLogic.Garage i_Garage)
        {
            UserInputOutput.ClearScreen();
            UserInputOutput.WriteLine(@"Type an amount of fuel you want to refill in liters");
            float litersOfFuelToRefuel = float.Parse(UserInputOutput.ReadLine());

            UserInputOutput.WriteLine(@"
Choose a type of fuel:
=====================
1-> Octan98
2-> Octan96
3-> Octan95
4-> Soler");
            GarageLogic.FuelType fuelType = GarageLogic.FuelType.Parse(UserInputOutput.ReadLine());
            string licenseNumber          = getUserInputOfVehicleLicenceNumberIfItExistsInGarage(i_Garage);

            if (!s_InterruptCurrTask)
            {
                i_Garage.FillFuelInVehicleThatBasedOnFuelSystem(licenseNumber, fuelType, litersOfFuelToRefuel);
            }
        }