Seal.Model.SealSecurity.UpdateEditorAttributes C# (CSharp) Method

UpdateEditorAttributes() protected method

protected UpdateEditorAttributes ( ) : void
return void
        protected override void UpdateEditorAttributes()
        {
            if (_dctd != null)
            {
                //Disable all properties
                foreach (var property in Properties) property.SetIsBrowsable(false);
                //Then enable
                GetProperty("CurrentParameters").SetIsBrowsable(true);
                GetProperty("ProviderName").SetIsBrowsable(true);
                GetProperty("Groups").SetIsBrowsable(true);
                //GetProperty("ProviderScript").SetIsBrowsable(true);
                GetProperty("UseCustomScript").SetIsBrowsable(true);
                GetProperty("PromptUserPassword").SetIsBrowsable(true);
                GetProperty("Script").SetIsBrowsable(true);
                GetProperty("Error").SetIsBrowsable(true);
                GetProperty("TestUserName").SetIsBrowsable(true);
                GetProperty("TestPassword").SetIsBrowsable(true);
                GetProperty("TestCurrentWindowsUser").SetIsBrowsable(true);
                GetProperty("HelperSimulateLogin").SetIsBrowsable(true);

                //GetProperty("ProviderScript").SetIsReadOnly(true); Let it writable to enable Reset
                GetProperty("PromptUserPassword").SetIsReadOnly(true);
                GetProperty("TestUserName").SetIsReadOnly(!Provider.PromptUserPassword);
                GetProperty("TestPassword").SetIsReadOnly(!Provider.PromptUserPassword);

                TypeDescriptor.Refresh(this);
            }
        }