Beispiel #1
0
 private void adjestPictureCollection(proxyButton i_Button)
 {
     PictureCollection.Controls.Clear();
     foreach (Control pic in i_Button.Controls)
     {
         if (pic is PictureBoxAdapter)
         {
             PictureBoxAdapter photo = new PictureBoxAdapter();
             photo.Image  = (pic as PictureBoxAdapter).Image;
             photo.Click += photo_Click;
             photo.Cursor = Cursors.Hand;
             PictureCollection.Controls.Add((photo));
         }
     }
 }
Beispiel #2
0
 protected override void FillTheList()
 {
     try
     {
         foreach (Photo photo in SelectedUser[1].PhotosTaggedIn)
         {
             PictureBoxAdapter pic = new PictureBoxAdapter();
             pic.m_photo = photo;
             pic.Load(photo.PictureNormalURL);
             pic.Visible = false;
             Invoke((Action)(() =>
             {
                 this.Controls.Add(pic);
             }));
         }
     }
     catch (Facebook.FacebookOAuthException e)
     {
         throw new Exception(e.Message);
     }
 }