ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupTextBox.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 = _ribbonTextBox.Enabled;

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

                c.Enabled = enabled;
            }
        }