ComponentFactory.Krypton.Ribbon.ButtonSpecMdiChildMin.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)
                {
                    MdiChild.WindowState = FormWindowState.Minimized;

                    // Let base class fire any other attached events
                    base.OnClick(e);
                }
            }
        }