private void atc_TestCompleted(object sender, TestCompletedEventArgs e) { bool isTargetCompleted = false; lock (executingTestsCountLock) { executingTestsCount--; if (executingTestsCount == 0) { isTargetCompleted = true; } } AutomatedTestControl atc = sender as AutomatedTestControl; toolTip1.SetToolTip(atc, e.Test.ResponseBody); foreach (Control c in atc.Controls) { toolTip1.SetToolTip(c, e.Test.ResponseBody); } if (isTargetCompleted && TargetCompleted != null) { TargetCompleted(this, new EventArgs()); } }
private void atc_TestCompleted(object sender, TestCompletedEventArgs e) { bool isTargetCompleted = false; lock (executingTestsCountLock) { executingTestsCount--; if (executingTestsCount == 0) isTargetCompleted = true; } AutomatedTestControl atc = sender as AutomatedTestControl; toolTip1.SetToolTip(atc, e.Test.ResponseBody); foreach (Control c in atc.Controls) toolTip1.SetToolTip(c, e.Test.ResponseBody); if (isTargetCompleted && TargetCompleted != null) TargetCompleted(this, new EventArgs()); }