ComponentFactory.Krypton.Toolkit.KryptonColorButton.NotifyDefault C# (CSharp) Method

NotifyDefault() public method

Notifies a control that it is the default color button so that its appearance and behavior is adjusted accordingly.
public NotifyDefault ( bool value ) : void
value bool true if the control should behave as a default color button; otherwise false.
return void
        public void NotifyDefault(bool value)
        {
            if (!ViewDrawButton.IsFixed && (_isDefault != value))
            {
                // Remember new default status
                _isDefault = value;

                // Decide if the default overrides should be applied
                _overrideNormal.Apply = value;

                // Change in deault state requires a layout and repaint
                PerformNeedPaint(true);
            }
        }