Beispiel #1
0
        public CampgroundReservationMenu(ICampgroundSqlDAO campgroundSql, Park park)
        {
            this.Title     = "***Search for Campground Reservation***";
            this.park      = park;
            campgroundList = campgroundSql.GetCampgroundsForPark(park);

            DisplayInfoForCampground(campgroundList);
            DisplayInformation();
        }
        public ParkCampgroundsMenu(ICampgroundSqlDAO campgroundSql, Park parkChoice)
        {
            campgroundDAO = campgroundSql;
            park          = parkChoice;

            campgroundList = campgroundDAO.GetCampgroundsForPark(park);

            DisplayInfoForCampground(campgroundList);
            Console.ReadKey();
            this.Title = "***Park Campgrounds***";
            this.Title = $"{parkChoice.Name} National Park";

            this.menuOptions.Add("1", "Search For Available Reservation");
            this.menuOptions.Add("Q", "Return to Previous Screen");
        }