protected override bool ExecuteSelection(string choice) { switch (choice) { case "1": // Call and execute reservation menu CampgroundReservationMenu resMenu = new CampgroundReservationMenu(campgroundDAO, park); resMenu.Run(); break; case "Q": break; } return(true); }
protected override bool ExecuteSelection(string choice) { switch (choice) { case "1": // display campgrounds method ICampgroundSqlDAO campgroundDAO = new CampgroundSqlDAO(ConnectionString); ParkCampgroundsMenu menu = new ParkCampgroundsMenu(campgroundDAO, park); menu.Run(); break; case "2": // Call Reservation Menu campgroundDAO = new CampgroundSqlDAO(ConnectionString); CampgroundReservationMenu menu2 = new CampgroundReservationMenu(campgroundDAO, park); menu2.Run(); break; case "Q": break; } return(true); }