private void favoriteChanged (object sender, FavoriteChangedEventArgs e) { if (this.category.CategoryName == "Your Favorites") { this.cvMovies.ReloadData (); } else { if (this.category.Movies.Find (x => x.Id == e.FavoriteMovie.Id) != null) this.cvMovies.ReloadData (); } }
private void favoriteChanged (object sender, FavoriteChangedEventArgs e) { if (this.similarMovies.FirstOrDefault (x => x.Id == e.FavoriteMovie.Id) != null) this.cvSimilarMovies.ReloadData (); }
private void favoriteChanged (object sender, FavoriteChangedEventArgs e) { if (this.isFavorites) { this.NotifyDataSetChanged (); } else { var idx = this.getIndexOfFavorite (e.FavoriteMovie.Id); if (idx >= 0) this.NotifyItemRangeChanged (idx, 1); } }