public PagePermission(PermissionCore owner)
        {
            this.Owner = owner;

            this.ButtonPermissions     = new ButtonPermissionCollection();
            this.ControlPermissions    = new ControlPermissionCollection();
            this.GridColumnPermissions = new GridColumnPermissionCollection(this.Owner);
        }
示例#2
0
        public GridColumnPermission(GridColumnPermissionCollection owner, XmlNode xmlNode)
        {
            // Set the owner.
            this.Owner = owner;

            // Get the id of the grid column.
            this.Id = xmlNode.Attributes["Id"].Value;

            // Parse the permission id of the grid column.
            this.IdPermission = int.Parse(xmlNode.Attributes["Permission"].Value);
        }