Example #1
0
        private void fetchProfilePicture()
        {
            GraphicsPath gp = new GraphicsPath();

            gp.AddEllipse(0, 0, ProfilePictureBox.Width - 3, ProfilePictureBox.Height - 3);
            Region region = new Region(gp);

            ProfilePictureBox.Region = region;
            ProfilePictureBox.LoadAsync(m_LoggedInUser.PictureNormalURL);
        }
Example #2
0
 public void FechUserBasicInfo()
 {
     ProfilePictureBox.Invoke(new Action(() => ProfilePictureBox.LoadAsync(User.PictureNormalURL)));
     coverPhotoPictureBox.Invoke(new Action(() => coverPhotoPictureBox.LoadAsync(User.Cover.SourceURL)));
     NameLabel.Invoke(new Action(() => NameLabel.Text         = "Hello " + User.Name));
     UserInfoLabel.Invoke(new Action(() => UserInfoLabel.Text =
                                         "Birthday: " + User.Birthday + Environment.NewLine +
                                         "Email: " + User.Email + Environment.NewLine +
                                         "Gender: " + User.Gender + Environment.NewLine +
                                         "Relationship Status: " + User.RelationshipStatus + Environment.NewLine));
 }
Example #3
0
        private void populateUI()
        {
            FacebookObjectCollection <User>  friends = m_LoggedInUser.FetchFriends();
            FacebookObjectCollection <Album> albums  = m_LoggedInUser.FetchAlbums();

            ProfilePictureBox.Load(m_LoggedInUser.FetchProfilePicture());

            foreach (User friend in friends)
            {
                FriendsListBox.Items.Add(friend);
                if (friend.Birthday == DateTime.Today.ToString())
                {
                    FriendsListBox.Items.Add(friend);
                }
            }

            foreach (Album album in albums)
            {
                AlbumsComboBox.Items.Add(new AlbumWrapper(album));
            }

            UserNameLabel.Text = string.Format("Hi, {0}", m_LoginResult.LoggedInUser.FirstName);
            addBirthdayMessages();
        }
 private void fetchProfilePicture()
 {
     ProfilePictureBox.LoadAsync(r_FacebookManager.CurrentUser.PictureNormalURL);
 }
 private void fetchProfilePicture()
 {
     ProfilePictureBox.Invoke(new Action(() => ProfilePictureBox.LoadAsync(r_FacebookManager.CurrentUser.PictureNormalURL)));
 }