Ejemplo n.º 1
0
        private void AlbumControl_Click(object sender, EventArgs e)
        {
            TitledPictureControl albumControl = sender as TitledPictureControl;
            Album album = m_FacebookUserManager.FindAlbumById(albumControl.Id);

            SelectedAlbumNameLabel.Text = album.Name;
            fillAlbumPicturePanel(album.Photos);
        }
Ejemplo n.º 2
0
        private TitledPictureControl addAlbumComponent(Album i_album, int i_x, int i_y)
        {
            TitledPictureControl albumControl = new TitledPictureControl(i_album.PictureAlbumURL, i_album.Name, i_album.Id);

            albumControl.Location = new Point(i_x, i_y);
            albumControl.Click   += AlbumControl_Click;
            AlbumsPanel.Controls.Add(albumControl);
            return(albumControl);
        }
Ejemplo n.º 3
0
        private TitledPictureControl addAlbumComponent(Album i_album, int i_x, int i_y)
        {
            TitledPictureControl albumControl = new TitledPictureControl(new AlbumDescriptiveCover(i_album), i_album.Id);

            albumControl.Location = new Point(i_x, i_y);
            albumControl.Click   += AlbumControl_Click;
            AlbumsPanel.Controls.Add(albumControl);
            return(albumControl);
        }
Ejemplo n.º 4
0
        public void FetchUserAlbums()
        {
            int k_x = AlbumsPanel.Bounds.Left;
            int y   = AlbumsPanel.Bounds.Top;
            TitledPictureControl albumControl = null;

            foreach (Album album in m_FacebookUserManager.NativeClient.Albums)
            {
                albumControl = addAlbumComponent(album, k_x, y);
                y           += albumControl.Height + 10;
            }

            m_DataFetchIndicator.AreAlbumsWereFetch = true;
        }