Exemplo n.º 1
0
        private async void GetAllRecipe(ApiObjects.RandomRecipe res)
        {
            await GetIngredients(res.id);
            await GetInstructions(res.id);

            SlctdResult    = res.title;
            BindingContext = this;
        }
Exemplo n.º 2
0
 public RecipeDetail(ApiObjects.RandomRecipe res)
 {
     Ingredient         = new List <Ingredient>();
     Instructions       = new Instructions();
     SpoonacularService = new SpoonacularService();
     InitializeComponent();
     CheckedFav(res.id);
     GetAllRecipe(res);
 }
Exemplo n.º 3
0
 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)));
 }