private void AddAclTab(TabPage tab_page, AclViewerControl control, Acl acl, Type access_type, GenericMapping mapping, AccessMask valid_access, bool is_container)
 {
     if (acl == null)
     {
         tabControl.TabPages.Remove(tab_page);
     }
     else
     {
         control.SetAcl(acl, access_type, mapping, valid_access, is_container);
     }
 }
Beispiel #2
0
 private void AddAclTab(TabPage tab_page, AclViewerControl control, Acl acl, Type access_type, GenericMapping mapping, AccessMask valid_access)
 {
     if (acl == null)
     {
         tabControl.TabPages.Remove(tab_page);
     }
     else
     {
         if (acl.NullAcl)
         {
             tab_page.Controls.Remove(control);
             tab_page.Controls.Add(new Label()
             {
                 Text = "NULL ACL", Dock = DockStyle.Fill
             });
         }
         else
         {
             control.SetAcl(acl, access_type, mapping, valid_access);
         }
     }
 }