Exemplo n.º 1
0
 /// <summary>
 /// Send a notification that a profile was updated.
 /// </summary>
 /// <param name="profile">The profile that was updated</param>
 public void NotifyProfileUpdated(Profile profile)
 {
     if (ProfileUpdated != null)
     {
         ProfileEventArgs args = new ProfileEventArgs {
             Profile = profile
         };
         ProfileUpdated(this, args);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This notification is triggered if the profile was updated from the
 /// server. We're only interested if the profile is for the current user.
 /// </summary>
 /// <param name="sender">The profiles task</param>
 /// <param name="args">Profile event arguments specifying the profile affected</param>
 private void OnProfileUpdated(object sender, ProfileEventArgs args)
 {
     Platform.UIThread(this, delegate
     {
         if (args.Profile.Username == CIX.Username)
         {
             RefreshAccount(args.Profile, false);
         }
     });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handle the event that is sent when a profile is updated. If the profile is the
 /// one we're displaying here, update what is displayed in the viewer.
 /// </summary>
 private void OnProfileUpdated(object sender, ProfileEventArgs args)
 {
     Platform.UIThread(this, delegate
     {
         if (_thisProfile != null && args.Profile.Username == _thisProfile.Username)
         {
             DisplayProfile();
         }
     });
 }