Esempio n. 1
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(GroupUserInfo objToCopy)
        {
            if (objToCopy == null)
            {
                return(false);
            }

            //save the values of the properties with private setters:
            GroupID = objToCopy.GroupID;
            UserID  = objToCopy.UserID;
            IsAdmin = objToCopy.IsAdmin;
            Status  = objToCopy.Status;

            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(GroupUserInfo objToCopy)
        {
            if (objToCopy == null)
                return false;

            //save the values of the properties with private setters:
            GroupID = objToCopy.GroupID;
            UserID = objToCopy.UserID;
            IsAdmin = objToCopy.IsAdmin;
            Status = objToCopy.Status;

            return true;
        }