//Execute selection from options menu protected override bool ExecuteSelection(string choice) { switch (choice) { case "1": CampSiteMenu menu = new CampSiteMenu(parkdao, campgroundDAO, reservationDAO, siteDAO, campgroundList); menu.Run(); return(true); } return(true); }
//Execute selection from options menu protected override bool ExecuteSelection(string choice) { campgroundList = campgroundDAO.GetCampgrounds(myPark.Park_Id); switch (choice) { case "1": CampgroundsMenu campgroundsMenu = new CampgroundsMenu(parkdao, campgroundDAO, reservationDAO, siteDAO, myPark); campgroundsMenu.Run(); return(true); case "2": CampSiteMenu menu = new CampSiteMenu(parkdao, campgroundDAO, reservationDAO, siteDAO, campgroundList); menu.Run(); return(true); } return(true); }