Esempio n. 1
0
 public void FetchUserVideoPosts(Post[] i_UserVideoPosts)
 {
     VideoPostListBox.Invoke(new Action(() => VideoPostListBox.Items.Clear()));
     foreach (Post post in i_UserVideoPosts)
     {
         if (post != null && post.Link != null)
         {
             if (post.Link.Contains("www.youtube.com"))
             {
                 VideoPostListBox.Invoke(new Action(() => VideoPostListBox.DisplayMember = "Name"));
                 VideoPostListBox.Invoke(new Action(() => VideoPostListBox.Items.Add(post)));
             }
         }
     }
 }
Esempio n. 2
0
        public void ClearhAllInfo()
        {
            BirthdaysTable.Clear();
            r_BirthdayDataKeeper.Birthdays.Clear();
            VideoPostListBox.Invoke(new Action(() => VideoPostListBox.Items.Clear()));
            FriendsListBox.Invoke(new Action(() =>
            {
                FriendsListBox.Items.Clear();
                FriendProfilePicture.ImageLocation = null;
            }));

            AlbumsListBox.Invoke(new Action(() =>
            {
                AlbumsListBox.Items.Clear();
                FacebookAlbum.PhotosDataGridView.Columns.Clear();
            }));
        }