ComponentFactory.Krypton.Toolkit.KryptonDropButton.NotifyDefault C# (CSharp) Метод

NotifyDefault() публичный Метод

Notifies a control that it is the default 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 button; otherwise false.
Результат 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);
            }
        }