Пример #1
0
 private void button_Clicked(object sender, System.EventArgs e)
 {
     if (button.Text == "Add to fav")
     {
         LocalStorageManager.AddRecipeAsFavorite(Id);
         button.Text = "Remove to fav";
     }
     else
     {
         LocalStorageManager.DeleteFavoriteRecipe(Id);
         button.Text = "Add to fav";
     }
 }