public PagePermission(PermissionCore owner) { this.Owner = owner; this.ButtonPermissions = new ButtonPermissionCollection(); this.ControlPermissions = new ControlPermissionCollection(); this.GridColumnPermissions = new GridColumnPermissionCollection(this.Owner); }
public Permission(XmlNode xmlNode, PermissionCore owner) : this(owner) { this.Name = xmlNode.Attributes["Name"].Value; this.Id = int.Parse(xmlNode.Attributes["Id"].Value); if (xmlNode.Attributes["Section"] != null) { this.IdSection = int.Parse(xmlNode.Attributes["Section"].Value); } else { this.IdSection = null; } }
public GridColumnPermissionCollection(PermissionCore owner, XmlNode xmlNode) : this(owner) { // Get all GridColumnPermission xml nodes. XmlNodeList xmlNodesGridColumnPermissions = xmlNode.SelectNodes("GridColumn"); // Run through all GridColumnPermission xml nodes. foreach (XmlNode xmlNodeGridColumnPermission in xmlNodesGridColumnPermissions) { // Create a new GridColumnPermission using the xml node. GridColumnPermission GridColumnPermission = new GridColumnPermission(this, xmlNodeGridColumnPermission); // Add the new GridColumnPermission to the collection's items. this.Items.Add(GridColumnPermission); } }
public Permission(int id, PermissionCore owner) : this(owner) { ReadFromXml("Id", id); }
public Permission(string name, PermissionCore owner) : this(owner) { ReadFromXml("Name", name); }
public Permission(PermissionCore owner) { this.Owner = owner; }
public SectionCollection(PermissionCore owner) { this.Items = new List <Section>(); this.Owner = owner; }
public GridColumnPermissionCollection(PermissionCore owner) { this.Items = new List <GridColumnPermission>(); this.Owner = owner; }
public PagePermission(PermissionCore owner, string pageName, Permission permission) : this(owner) { this.PageName = pageName; this.Permission = permission; }