private void OnSearchButtonClicked(object sender, EventArgs e)
 {
     if (_component.IsSearchEnabled)
     {
         if (!(_lastActiveControl is Button))
         {
             _lastActiveControl = ActiveControl;
         }
         _component.Search();
     }
     else
     {
         _component.CancelSearch();
     }
 }