Beispiel #1
0
 private void handleSearchClick(HitInfo hitInfo)
 {
     SearchClicked?.Invoke(this,
                           new SearchArgs
     {
         FieldName      = hitInfo.FieldName,
         FieldValue     = GetText(hitInfo.RowHandle, hitInfo.FieldName),
         UseAndOperator = ModifierKeys == Keys.Shift
     });
 }
Beispiel #2
0
 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
         });
     }
 }
Beispiel #3
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     SearchClicked?.Invoke(sender, e);
 }
 static public void SearchPressed()
 {
     SearchClicked?.Invoke();
 }
Beispiel #5
0
 /// <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);
        }