Esempio n. 1
0
        public SubUserGroup(Core core, string groupName, UserSubGroupLoadOptions loadOptions)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(SubUserGroup_ItemLoad);

            try
            {
                LoadItem("sub_group_name", groupName);
            }
            catch (InvalidItemException)
            {
                throw new InvalidSubGroupException();
            }
        }
Esempio n. 2
0
        public SubUserGroup(Core core, DataRow groupRow, UserSubGroupLoadOptions loadOptions)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(SubUserGroup_ItemLoad);

            try
            {
                loadItemInfo(groupRow);
            }
            catch (InvalidItemException)
            {
                throw new InvalidSubGroupException();
            }
        }
Esempio n. 3
0
        public SubUserGroup(Core core, long groupId, UserSubGroupLoadOptions loadOptions)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(SubUserGroup_ItemLoad);

            try
            {
                LoadItem(groupId);
            }
            catch (InvalidItemException)
            {
                throw new InvalidSubGroupException();
            }
        }