public void AddUserToGroup(int Id, int UserId, int FriendId, int CategoryId)
        {
            if (!HasFriend(UserId, FriendId))
            {
                return;
            }

            Dictionary<int, Object> Row = new Dictionary<int, object>();

            Row[0] = Id;
            Row[1] = UserId;
            Row[2] = FriendId;
            Row[3] = CategoryId;

            FriendGroupItem Item = new FriendGroupItem(Row);

            FriendGroupItems.Add(Item.Id, Item);
        }
        public void LoadFriendGroupItems()
        {
            FriendGroupItems = new Dictionary<int, FriendGroupItem>();

            DataTable Table = null;

            using (QueryReactor Reactor = BrickEngine.GetQueryReactor())
            {
                Reactor.SetQuery("SELECT * FROM user_friends_groups_items");
                Table = Reactor.GetTable();
            }

            if (Table != null)
            {
                foreach (DataRow Row in Table.Rows)
                {
                    FriendGroupItem Item = new FriendGroupItem(Row);

                    FriendGroupItems.Add(Item.Id, Item);
                }
            }

            BrickEngine.GetScreenWriter().ScretchLine("[" + FriendGroupItems.Count + "] FriendGroupItem(s) cached.", IO.WriteType.Outgoing);
        }