Beispiel #1
0
 void search_DoSearchEvent(object sender, SearchEventArgs e)
 {
     if (this.SearchText.InvokeRequired)
     {
         this.BeginInvoke(new InvokeDelegate(UpdateSearchText), new object[] { e.Msg });
     }
     else
     {
         UpdateSearchText(e.Msg);
     }
 }
Beispiel #2
0
 public virtual void SearchingEvent(string msg)
 {
     if (DoSearchEvent != null)
     {
         SearchEventArgs e = new SearchEventArgs(msg);
         DoSearchEvent(this, e);
     }
 }