ComponentFactory.Krypton.Ribbon.ButtonSpecMinimizeRibbon.OnClick C# (CSharp) Method

OnClick() protected method

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void
        protected override void OnClick(EventArgs e)
        {
            // Only if associated view is enabled to we perform an action
            if (GetViewEnabled())
            {
                if (!_ribbon.InDesignMode)
                    _ribbon.MinimizedMode = true;
            }
        }