protected OnClick ( |
||
e | An EventArgs containing the event data. | |
return | void |
protected virtual void OnClick(EventArgs e)
{
// Only if associated view is enabled do we perform the click
if (GetViewEnabled())
{
if (Click != null)
Click(this, e);
// If we have an attached command then execute it
if (KryptonCommand != null)
KryptonCommand.PerformExecute();
}
}