ComponentFactory.Krypton.Toolkit.SeparatorController.RegisterFilter C# (CSharp) Method

RegisterFilter() private method

private RegisterFilter ( ) : void
return void
        private void RegisterFilter()
        {
            if (_filter == null)
            {
                // Check that caller has permission to access unmanaged code
                new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Assert();

                try
                {
                    _filter = new SeparatorMessageFilter(this);
                    Application.AddMessageFilter(_filter);
                }
                finally
                {
                    // Always revert the assertion made above
                    CodeAccessPermission.RevertAssert();
                }
            }
        }