Beispiel #1
0
 public override void CallNavigation()
 {
     Console.Clear();
     base.ItemsMenu = new List <EntityMenu>
     {
         new EntityMenu()
         {
             Name = "    Go to page", TypeEntity = "pages"
         },
         new EntityMenu()
         {
             Name = "    Сreate a new ingredient"
         },
         new EntityMenu()
         {
             Name = "    Cancel"
         },
     };
     ItemsMenu.Add(new EntityMenu()
     {
         Name = "\n    Recipe ingredients:\n"
     });
     ItemsMenu = RecipeIngredients.Get(ItemsMenu, IdRecipe);
     ItemsMenu.Add(new EntityMenu()
     {
         Name = "\n    Ingredients to add:\n"
     });
     ItemsMenu = Ingredients.GetIngredientsBatch(ItemsMenu, PageIngredients);
     base.CallNavigation();
 }
 public override void CallNavigation()
 {
     Console.Clear();
     ItemsMenu = new List <EntityMenu>
     {
         new EntityMenu()
         {
             Name = "    Add ingredient"
         },
         new EntityMenu()
         {
             Name = "    Return to settings"
         },
         new EntityMenu()
         {
             Name = "    Go to page", TypeEntity = "pages"
         },
         new EntityMenu()
         {
             Name = "\n    Ingredients:\n"
         }
     };
     ItemsMenu = Ingredients.GetIngredientsBatch(ItemsMenu, PageIngredients);
     base.CallNavigation();
 }