protected virtual void OnClick(EventArgs e)
{
// Perform processing that is common to any action that would dismiss
// any popup controls such as the showing minimized group popup
if (Ribbon != null)
Ribbon.ActionOccured();
if (Click != null)
Click(this, e);
// Clicking the button should execute the associated command
if (KryptonCommand != null)
KryptonCommand.PerformExecute();
}