コード例 #1
0
        private bool AddUsersToGroup(UserBase[] users, UserGroup grp)
        {
            bool flag = false;

            if (grp != null)
            {
                foreach (UserBase user in users)
                {
                    if (!grp.UserIsInGroup(user, this._session))
                    {
                        if (user != null)
                        {
                            flag = grp.AddUser(user, this._session);
                        }
                    }
                }
            }
            return(flag);
        }
コード例 #2
0
        private bool AddUsersToGroup(UserBase[] users, UserGroup grp)
        {
            bool flag = false;

            if (grp != null)
            {
                foreach (UserBase user in users)
                {
                    if (!grp.UserIsInGroup(user, this._session))
                    {
                        if (user != null)
                        {
                            flag = grp.AddUser(user, this._session);
                        }
                    }
                }
            }
            return flag;
        }