private void StartRun() { Run run = new Run(profiler, application.Text); run.profiler.completed = new EventHandler(run.Complete); run.Start(); }
private void StartRun() { string message; bool success = profiler.CheckSetup(out message); if (!success) { MessageBox.Show(this, message, "Application setup error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Run run = new Run(profiler); run.profiler.completed = new EventHandler(run.Complete); run.Start(); }