Esempio n. 1
0
        private void SearchNextNode()
        {
            if (_searchState == null)
            {
                return;
            }

            SearchWorker worker = new SearchWorker(_searchState);

            Thread t = new Thread(new ThreadStart(worker.Run));

            t.IsBackground = true;
            t.Start();

            _searchForm = new CancelFindWindowController();
            if (RunWindow(_searchForm) == ModalResult.Cancel)
            {
                worker.Cancel();
                _searchState = null;
            }

            t.Join();
        }
Esempio n. 2
0
		private void SearchNextNode ()
		{
			if (_searchState == null)
				return;
			
			SearchWorker worker = new SearchWorker (_searchState);
			
			Thread t = new Thread (new ThreadStart (worker.Run));
			t.IsBackground = true;
			t.Start ();

			_searchForm = new CancelFindWindowController ();
			if (RunWindow (_searchForm) == ModalResult.Cancel) {
				worker.Cancel();
				_searchState = null;
			}
			
			t.Join();
		}