예제 #1
0
        private int GetSelectedVehicleType()
        {
            ConsoleMenu.PrintMenu(typeof(VehicleType), "Select Vehicle type:");
            var selection = ConsoleMenu.GetUserSelection(0, Enum.GetNames(typeof(VehicleType)).Length - 1);

            return(selection);
        }
예제 #2
0
        private int GetSelectedCriteria(Type options, string label)
        {
            ConsoleMenu.PrintMenu(options, label);
            var selection = ConsoleMenu.GetUserSelection(0, Enum.GetNames(options).Length - 1);

            return(selection);
        }