private void ShowResults(object sender, FindPrimesCompletedEventArgs e) { AsyncTestResult result = new AsyncTestResult(); result.Text = String.Format("Primes From {0} To {1}", new object[] { e.From, e.To }); result.ShowList(e.PrimeList); result.MdiParent = this; result.Show(); lock (workers) { statusPanel.Text = String.Format("Currently running {0} tasks.", workers.Count); } }