Ejemplo n.º 1
0
 //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);
 }
Ejemplo n.º 2
0
        //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);
        }