/// <summary> /// The override of ExecuteSelection handles whatever selection was made by the user. /// This is where any business logic is executed. /// </summary> /// <param name="choice">"Key" of the user's menu selection</param> /// <returns></returns> protected override bool ExecuteSelection(string choice) { switch (choice) { case "1": // Do whatever option 1 is CampSearchMenu campMenu = new CampSearchMenu(park); campMenu.Run(); return(true); case "2": // Do whatever option 2 is WriteError("Not yet implemented"); Pause(""); return(false); } return(true); }
/// <summary> /// The override of ExecuteSelection handles whatever selection was made by the user. /// This is where any business logic is executed. /// </summary> /// <param name="choice">"Key" of the user's menu selection</param> /// <returns></returns> protected override bool ExecuteSelection(string choice) { switch (choice) { case "1": // View campgrounds CampSearchMenu campMenu = new CampSearchMenu(park); campMenu.Run(); return(true); case "2": // this option has been made invalid WriteError("Not yet implemented"); Pause(""); return(false); } return(true); }