Exemplo n.º 1
0
        private Fuel.eFuelType getFuelType()
        {
            ConsoleMsg.FuelType();
            string userInput = Console.ReadLine();

            while (!ValidationInput.TypeRangeCheck(userInput))
            {
                ConsoleMsg.FuelType();
                userInput = Console.ReadLine();
            }

            int result;

            int.TryParse(userInput, out result);
            return((Fuel.eFuelType)result);
        }