Exemplo n.º 1
0
        private AclNode CreateNode(string txt, AclNodeType type, decimal site_id)
        {
            var n = new AclNode(txt, type);

            if (type == AclNodeType.Site || type == AclNodeType.User)
            {
                n.Icon = imageList1.Images["Generic_Document.ico"];
            }
            if (type == AclNodeType.User)
            {
                n.Icon = imageList1.Images["User.ico"];
            }
            n.SiteID = site_id;
            return(n);
        }
Exemplo n.º 2
0
 public AclNode(string text, AclNodeType type, decimal site_id)
     : base(text)
 {
     SiteID           = site_id;
     this.AclNodeType = type;
 }
Exemplo n.º 3
0
 private AclNode CreateNode(string txt, AclNodeType type)
 {
     return(CreateNode(txt, type, -1));
 }
Exemplo n.º 4
0
 public AclNode(string text, AclNodeType type) : base(text)
 {
     SiteID           = -1;
     this.AclNodeType = type;
 }