private void InitializeAndRunFindCalculatorBackgroundWorker() { FindCalculatorBackgroundWorker.WorkerSupportsCancellation = true; FindCalculatorBackgroundWorker.DoWork += new DoWorkEventHandler(FindCalculatorBackgroundWorker_DoWork); FindCalculatorBackgroundWorker.RunWorkerAsync(); }
protected override void OnClosing(CancelEventArgs e) { FindCalculatorBackgroundWorker.CancelAsync(); SystemMenuItem.RemoveCalculatorMenuItem(); base.OnClosing(e); }