private void handleSearchClick(HitInfo hitInfo) { SearchClicked?.Invoke(this, new SearchArgs { FieldName = hitInfo.FieldName, FieldValue = GetText(hitInfo.RowHandle, hitInfo.FieldName), UseAndOperator = ModifierKeys == Keys.Shift }); }
private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text)) { return; } if (SearchClicked != null) { SearchClicked.Invoke(this, new SearchClickedArgs() { SearchWord = textBox1.Text.Replace(" ", ""), TableName = comboBox1.Text }); } }
protected void btnSearch_Click(object sender, EventArgs e) { SearchClicked?.Invoke(sender, e); }
static public void SearchPressed() { SearchClicked?.Invoke(); }
/// <summary> /// Raises the SearchClicked event. /// </summary> protected void OnSearchClicked() { SearchClicked?.Invoke(this, new EventArgs()); }
private void ListSearchResults_MouseUp(object sender, MouseButtonEventArgs e) { PDFSearchResult search_result = ListSearchResults.SelectedItem as PDFSearchResult; SearchClicked?.Invoke(search_result); }