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); }
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)); }
private void fetchProfilePicture() { ProfilePictureBox.LoadAsync(r_FacebookManager.CurrentUser.PictureNormalURL); }
private void fetchProfilePicture() { ProfilePictureBox.Invoke(new Action(() => ProfilePictureBox.LoadAsync(r_FacebookManager.CurrentUser.PictureNormalURL))); }