Click method
void
Click()
Implementation
void Click()
{
// Call OnClick if assigned and not equal to associated action's OnExecute.
// If associated action's OnExecute assigned then call it, otherwise, call
// OnClick.
if((OnClick!=null) && (Action != null) && (_onClick != Action!.OnExecute))
OnClick!(this);
else
if(!(ComponentState.contains(ComponentStates.Designing)) && (ActionLink != null))
ActionLink!.Execute(this);
else
if(OnClick != null)
OnClick!(this);
}