public void ReformTermsAsynchronously(IEnumerable<String> terms, ImprovedQueryReady callback)
 {
     var worker = new BackgroundWorker { WorkerReportsProgress = false,
         WorkerSupportsCancellation = false };
     worker.DoWork += (sender, args) => callback.Invoke(ReformTermsSynchronously(terms));
     worker.RunWorkerAsync();
 }
Esempio n. 2
0
        public void ReformTermsAsynchronously(IEnumerable <String> terms, ImprovedQueryReady callback)
        {
            var worker = new BackgroundWorker {
                WorkerReportsProgress      = false,
                WorkerSupportsCancellation = false
            };

            worker.DoWork += (sender, args) => callback.Invoke(ReformTermsSynchronously(terms));
            worker.RunWorkerAsync();
        }