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

OnClick() protected method

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e EventArgs An EventArgs containing 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 ((KryptonContextMenu == null) &&
                    (ContextMenuStrip == null))
                {
                    // Remove the popup app menu that is showing
                    VisualPopupManager.Singleton.EndAllTracking();
                }

                // If a checked style button
                if (Checked != ButtonCheckState.NotCheckButton)
                {
                    // Then invert the checked state
                    if (Checked == ButtonCheckState.Unchecked)
                        Checked = ButtonCheckState.Checked;
                    else
                        Checked = ButtonCheckState.Unchecked;
                }

                GenerateClick(e);
            }
        }
        #endregion
ButtonSpecAppMenu