示例#1
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));
 }