public void SetupMenu() { if (!App.Login) { ListMenu.Clear(); ListMenu.Add(new Models.Menu() { Tag = "LOGIN", Title = "Login", Icon = "" }); ListMenu.Add(new Models.Menu() { Tag = "TOP", Title = "TOP 50", Icon = "" }); } else { ListMenu.Clear(); ListMenu.Add(new Models.Menu() { Tag = "TOP", Title = "TOP 50", Icon = "" }); } }
public void SelectedTabViewCommandExecuted(int index) { try { ListMenu.Clear(); if (index == 0) { //breakfast ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); ListMenu.Add(new FoodModel { Url = "https://upload.wikimedia.org/wikipedia/commons/f/f7/Eggs%2C_parmesan_and_carrots_with_cream.jpeg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Egg Toast", Price = "$30" }); } else if (index == 1) { //sandwiches ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); ListMenu.Add(new FoodModel { Url = "https://www.ciafoodies.com/wp-content/uploads/2019/10/PM_20161005_AP_11-1024x767.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Sandwiches", Price = "$50" }); } else if (index == 2) { //salads ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); ListMenu.Add(new FoodModel { Url = "https://www.budgetbytes.com/wp-content/uploads/2018/07/Build-Cobb-Salads-Step-3.jpg", Description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.", Name = "Salads", Price = "$70" }); } } catch (Exception ex) { } }