public Vehicle.eVehicleGarageStatus GetFilter() { m_UserDisplay.ClearAndDisplayMessage("You have chosen to Display the license numbers of the vehicles whom are currently in the garage"); m_UserDisplay.DisplayMessage("Would you like to filter according to the status of each vehicle? Press Y for 'Yes' or N For 'No'"); bool userWantsToFilter = ValidateUserInput.validateYesOrNo(); Vehicle.eVehicleGarageStatus vehicleStatus; if (userWantsToFilter) { vehicleStatus = ValidateUserInput.GetStateFromUser(); } else { vehicleStatus = Vehicle.eVehicleGarageStatus.Undefined; } return(vehicleStatus); }
private bool setIfCarryingDangerousMaterials() { m_UserDisplay.ClearAndDisplayMessage("Please choose whether the truck will carry dangerous materials chose Y to 'Yes' and N to 'No'"); return(ValidateUserInput.validateYesOrNo()); }