private void Chat_OnAcceptFriend(object sender, FriendRequestEventArgs e) { chat.Me.AddFriend(e.Client); if (e.Client.Connected) e.Client.AddNotificationQueue(new NotificationContainer(chat.Me, NotificationType.AcceptRequest)); Chat_OnFriendRequest(null, null); }
private void Chat_OnFriendRequest(object sender, FriendRequestEventArgs e) { UpdateRequestFriend(chat.Server.GetFriendsCount(chat.Me)); }