private async void GetAllRecipe(ApiObjects.RandomRecipe res) { await GetIngredients(res.id); await GetInstructions(res.id); SlctdResult = res.title; BindingContext = this; }
public RecipeDetail(ApiObjects.RandomRecipe res) { Ingredient = new List <Ingredient>(); Instructions = new Instructions(); SpoonacularService = new SpoonacularService(); InitializeComponent(); CheckedFav(res.id); GetAllRecipe(res); }
private async void listView_ItemTapped(object sender, ItemTappedEventArgs e) { ApiObjects.RandomRecipe tappedItem = e.Item as ApiObjects.RandomRecipe; //Select item tapped if (tappedItem == null) { return; } await Navigation.PushModalAsync(new NavigationPage( new RecipeDetail(tappedItem))); }