Esempio n. 1
0
        void albums_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            FacebookPhotoAlbumCollection albums = (FacebookPhotoAlbumCollection)sender;

            if (albums.Count != 0)
            {
                _album = albums[0];
                Utilities.NotifyPropertyChanged(this, PropertyChanged, "Album");
            }
        }
Esempio n. 2
0
        /// <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]);
            }
        }
        void albums_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            FacebookPhotoAlbumCollection albums = (FacebookPhotoAlbumCollection)sender;

            albums.CollectionChanged -= albums_CollectionChanged;

            if (albums.Count > 0)
            {
                _album = albums[0];
            }

            this.NotifyPropertyChanged(PropertyChanged, o => o.Album);
        }