private void EditItemMenu(string response) { InteractiveChooser chooser = new InteractiveChooser("Select an Item to Edit"); foreach (Item item in _pantry.Items) { chooser.AddChoice(new Choice(item.Description, EditItem)); } chooser.AskForChoice(); }
private void MainMenu() { InteractiveChooser chooser = new InteractiveChooser("Select a category of things to manage"); chooser.AddChoice(new Choice("Item SubMenu", ItemsMenu)); chooser.AddChoice(new Choice("Recipe SubMenu", RecipesMenu)); chooser.AskForChoice(); }
private void ItemsMenu(string response) { InteractiveChooser chooser = new InteractiveChooser("Select an operation to perform"); chooser.AddChoice(new Choice("Add an Item", AddItem)); chooser.AddChoice(new Choice("Add Items", AddItems)); chooser.AddChoice(new Choice("Edit an Item", EditItemMenu)); chooser.AddChoice(new Choice("List All Items in the Pantry", ShowItemsReport)); chooser.AskForChoice(); }
private void RecipesMenu(string response) { InteractiveChooser chooser = new InteractiveChooser("Select an action to perform"); chooser.AddChoice(new Choice("Add a Recipe", NullAction)); chooser.AddChoice(new Choice("Edit a Recipe", NullAction)); chooser.AskForChoice(); }