/// <summary> /// Constructor adds items to the top-level menu /// </summary> public ParkCampgroundsMenu(ICampgroundDAO campgroundDAO, ICampsiteDAO campsiteDAO, IParkDAO parkDAO, IReservationDAO reservationDAO, Campground campground) : base("Sub-Menu 1") { // Store any values or DAOs passed in.... this.campgroundDAO = campgroundDAO; this.campsiteDAO = campsiteDAO; this.parkDAO = parkDAO; this.reservationDAO = reservationDAO; this.campground = campground; }
/// <summary> /// Constructor adds items to the top-level menu /// </summary> public ParkInfoMenu(ICampgroundDAO campgroundDAO, ICampsiteDAO campsiteDAO, IParkDAO parkDAO, IReservationDAO reservationDAO, Park park) : base("ParkInfoMenu") { // Store any values or DAOs passed in.... this.campgroundDAO = campgroundDAO; this.campsiteDAO = campsiteDAO; this.parkDAO = parkDAO; this.reservationDAO = reservationDAO; this.park = park; }
/// <summary> /// Constructor adds items to the top-level menu. YOu will likely have parameters for one or more DAO's here... /// </summary> public MainMenu(ICampgroundDAO campgroundDAO, ICampsiteDAO campsiteDAO, IParkDAO parkDAO, IReservationDAO reservationDAO) : base("Main Menu") { this.campgroundDAO = campgroundDAO; this.campsiteDAO = campsiteDAO; this.parkDAO = parkDAO; this.reservationDAO = reservationDAO; //this.cityDAO = cityDAO; //this.countryDAO = countryDAO; }
/// <summary> /// Constructor adds items to the top-level menu /// </summary> public ReservationMenu(ICampgroundDAO campgroundDAO, ICampsiteDAO campsiteDAO, IParkDAO parkDAO, IReservationDAO reservationDAO, Site campsite, DateTime startDate, DateTime endDate) : base("Sub-Menu 1") { // Store any values or DAOs passed in.... this.campgroundDAO = campgroundDAO; this.campsiteDAO = campsiteDAO; this.parkDAO = parkDAO; this.reservationDAO = reservationDAO; this.campsite = campsite; this.startDate = startDate; this.endDate = endDate; }