ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupCustomControl.UpdateEnabled C# (CSharp) Метод

UpdateEnabled() приватный Метод

private UpdateEnabled ( Control c ) : void
c System.Windows.Forms.Control
Результат void
        private void UpdateEnabled(Control c)
        {
            if (c != null)
            {
                // Start with the enabled state of the group element
                bool enabled = _ribbonCustomControl.Enabled;

                // If we have an associated designer setup...
                if (!_ribbon.InDesignHelperMode && (_ribbonCustomControl.CustomControlDesigner != null))
                {
                    // And we are not using the design helpers, then use the design specified value
                    enabled = _ribbonCustomControl.CustomControlDesigner.DesignEnabled;
                }

                c.Enabled = enabled;
            }
        }