hMailServer.Administrator.Dialogs.formFolderPermissions.EnableDisable C# (CSharp) 메소드

EnableDisable() 개인적인 메소드

private EnableDisable ( ) : void
리턴 void
        private void EnableDisable()
        {
            bool enable = listACL.SelectedItems.Count > 0;

            checkPermissionAdminister.Enabled = enable;
            checkPermissionCreateMailbox.Enabled = enable;
            checkPermissionDeleteMailbox.Enabled = enable;
            checkPermissionExpunge.Enabled = enable;
            checkPermissionInsert.Enabled = enable;
            checkPermissionLookup.Enabled = enable;
            checkPermissionRead.Enabled = enable;
            checkPermissionKeepDeletedFlag.Enabled = enable;
            checkPermissionKeepOtherFlags.Enabled = enable;
            checkPermissionKeepSeenFlag.Enabled = enable;

            buttonSelectAll.Enabled = enable;
            buttonSelectNone.Enabled = enable;
            buttonDeletePermission.Enabled = enable;

            if (!enable)
                SelectAll(false);
        }