ComponentFactory.Krypton.Toolkit.ButtonSpec.OnClick C# (CSharp) Method

OnClick() protected method

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs 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();
            }
        }