/// <summary> /// Handler for label click. /// </summary> /// <param name="control">Event source.</param> protected virtual void OnClickName(Base control) { if (LabelPressed != null) { LabelPressed.Invoke(this); } IsSelected = !IsSelected; }
/// <summary> /// Handler for label click. /// </summary> /// <param name="control">Event source.</param> protected virtual void OnClickName(Base control, EventArgs args) { if (LabelPressed != null) { LabelPressed.Invoke(this, EventArgs.Empty); } IsSelected = !IsSelected; }