protected virtual void OnClick(EventArgs e) { if (Click != null) Click(this, e); // If we have an attached command then execute it if (KryptonCommand != null) KryptonCommand.PerformExecute(); }