Example #1
0
 private void BtnDoSearch_Click(object sender, RoutedEventArgs e)
 {
     if (this.Text != String.Empty)
     {
         DoSearch?.Invoke(this, this.Text);
     }
 }
Example #2
0
 private void TextBox_PreviewKeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (this.Text != String.Empty)
         {
             DoSearch?.Invoke(this, this.Text);
         }
     }
 }
Example #3
0
 private void SearchBox_DoSearch(SearchBox sender, string searchText)
 {
     DoSearch?.Invoke(sender, searchText);
     sender.Text = "";
     cbRangeType.SelectedIndex = 0;
 }