Esempio n. 1
0
 public void Run()
 {
     try {
         var searcher = new FilterSearcher(filter, searchComparer, AddResult, language, cts.Token);
         searcher.SearchAssemblies(asmNodes);
     }
     catch (OperationCanceledException) {
         // ignore cancellation
     }
     // remove the 'Searching…' entry
     dispatcher.BeginInvoke(
         DispatcherPriority.Normal,
         new Action(delegate { this.Results.RemoveAt(this.Results.Count - 1); }));
 }
Esempio n. 2
0
 public void Run()
 {
     try {
         var searcher = new FilterSearcher(filter, searchComparer, AddResult, language, cts.Token);
         searcher.SearchAssemblies(asmNodes);
     }
     catch (OperationCanceledException) {
         // ignore cancellation
     }
     dispatcher.BeginInvoke(
         DispatcherPriority.Normal,
         new Action(() => {
         // remove the 'Searching...' entry
         this.Results.RemoveAt(this.Results.Count - 1);
         if (OnSearchEnded != null)
         {
             OnSearchEnded(this, EventArgs.Empty);
         }
     })
         );
 }
Esempio n. 3
0
		public void Run()
		{
			try {
				var searcher = new FilterSearcher(filter, searchComparer, AddResult, language, cts.Token);
				searcher.SearchAssemblies(asmNodes);
			}
			catch (OperationCanceledException) {
				// ignore cancellation
			}
			// remove the 'Searching…' entry
			dispatcher.BeginInvoke(
				DispatcherPriority.Normal,
				new Action(delegate { this.Results.RemoveAt(this.Results.Count - 1); }));
		}