private void toolStripButton1_Click(object sender, EventArgs e) { this.backgroundWorker1.RunWorkerAsync(); this.OnBackgroundEvent += waitForm.UpdateMessage; waitForm.ShowDialog(); }
private void runAnalysisToolStripMenuItem_Click(object sender, EventArgs e) { this.backgroundWorker1.RunWorkerAsync(); this.OnBackgroundEvent += waitForm.UpdateMessage; waitForm.ShowDialog(this); }