private static void PersistFriendStateChanged(object source, MessengerFriendEventArgs e) { switch (e.Type) { case FriendUpdateType.Added: { break; } case FriendUpdateType.Removed: { break; } } }
private static void Messenger_OnMessengerFriendStateChanged(object source, MessengerFriendEventArgs e) { (source as MessengerObject).GetWaitingUpdateMessage().FriendUpdates.Add(e); }