Exemplo n.º 1
0
        internal void StartSearch(SearchRequest request)
        {
            if (request == null)
                throw new ArgumentNullException("request");

            ui_searchWorker.RunWorkerAsync(request);
        }
Exemplo n.º 2
0
        internal void StartSearch(SearchRequest request)
        {
            if (request == null)
                throw new ArgumentNullException("request");

            if (ui_searchWorker.IsBusy)
                ui_searchWorker.CancelAsync();

            while (ui_searchWorker.IsBusy)
                Thread.Sleep(0);

            ui_searchWorker.RunWorkerAsync(request);
        }