public void AddFriend(Jid jid, XmppClientConnection XmppConn)
 {
     if (!FriendKey.ContainsKey(jid.Bare))
     {
         GroupFriendControl friend = new GroupFriendControl(XmppConn,jid);
         friend.FCType = FriendContainerType.Small;
         friend.Location = new Point(1, 36 * this.Controls.Count);
         friend.Size = new Size(this.Width - 2, 35);
         friend.OpenChat += new GroupFriendControl.OpenChatEventHandler(friend_OpenChat);
         friend.ShowContextMenu += new GroupFriendControl.ShowContextMenuEventHandler(friend_ShowContextMenu);
         friend.Selecting += new GroupFriendControl.SelectedEventHandler(friend_Selecting);
         Controls.Add(friend);
         this.Height += 36;
         FriendKey.Add(jid.Bare, jid);
     }
     System.GC.Collect();
 }
 public void friend_ShowContextMenu(GroupFriendControl sender, MouseEventArgs e)
 {
     if (group_friendcm == null)
     {
         InitFriendMenu();
     }
     group_friendcm.Show(sender, e.Location);
     System.GC.Collect();
 }