void photos_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { FacebookPhotoCollection photos = (FacebookPhotoCollection)sender; photos.CollectionChanged -= photos_CollectionChanged; this.Photos.Merge(photos); this.NotifyPropertyChanged(PropertyChanged, o => o.Size); }
/// <summary> /// Makes an async call to refresh photos information for this album /// </summary> public void Refresh() { FacebookPhotoCollection photos = BindingManager.Instance.GetPhotos(AlbumId); photos.CollectionChanged += photos_CollectionChanged; FacebookPhotoAlbumCollection albums = BindingManager.Instance.GetAlbums(new [] { AlbumId }, false); if (albums.Count == 1) { MergeCoverAlbum(albums[0]); } }