/// <summary>
 /// A OnClick event.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnClick(EventArgs e)
 {
     if (BaseTree.UseSameClickEvent)
     {
         if (BaseTree.Click != null)
         {
             BaseTree.Click(this, e);
         }
     }
     else
     {
         if (Click != null)
         {
             Click(this, e);
         }
     }
 }