//Thread t; public QuickSearch() { InitializeComponent(); searcher = new PhoneDirectory.BusinessLayer.Searcher(backgroundWorker); contacts = new Dictionary <string, Contact>(); this.backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker_DoWork); this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted); this.backgroundWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.backgroundWorker_ProgressChanged); this.backgroundWorker.WorkerSupportsCancellation = true; this.backgroundWorker.WorkerReportsProgress = true; }
//Thread t; public QuickSearch() { InitializeComponent(); searcher = new PhoneDirectory.BusinessLayer.Searcher(); }