private int GetSelectedVehicleType() { ConsoleMenu.PrintMenu(typeof(VehicleType), "Select Vehicle type:"); var selection = ConsoleMenu.GetUserSelection(0, Enum.GetNames(typeof(VehicleType)).Length - 1); return(selection); }
private int GetSelectedCriteria(Type options, string label) { ConsoleMenu.PrintMenu(options, label); var selection = ConsoleMenu.GetUserSelection(0, Enum.GetNames(options).Length - 1); return(selection); }