public void LoadFriendGroups()
        {
            FriendGroups = new Dictionary<int, FriendGroup>();

            DataTable Table = null;

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

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

                    FriendGroups.Add(Group.Id, Group);
                }
            }

            BrickEngine.GetScreenWriter().ScretchLine("[" + FriendGroups.Count + "] FriendGroup(s) cached.", IO.WriteType.Outgoing);
        }
        public void CreateGroup(int Id, int UserId, string Name)
        {
            Dictionary<int, Object> Row = new Dictionary<int, object>();

            Row[0] = Id;
            Row[1] = UserId;
            Row[2] = Name;

            FriendGroup Group = new FriendGroup(Row);

            FriendGroups.Add(Group.Id, Group);
        }