Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }