ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupDomainUpDown.UpdateEnabled C# (CSharp) Method

UpdateEnabled() private method

private UpdateEnabled ( Control c ) : void
c System.Windows.Forms.Control
return void
        private void UpdateEnabled(Control c)
        {
            if (c != null)
            {
                // Start with the enabled state of the group element
                bool enabled = _ribbonDomainUpDown.Enabled;

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

                c.Enabled = enabled;
            }
        }