private void OnResult(object Sender, TestResultEventArgs e) { if (this.TestResult != null) { this.TestResult(this, e); } }
private void ShowTestResult(TestResultEventArgs e) { ListViewItem item = new ListViewItem(e.TestName.Trim()); item.SubItems.Add(e.TestResult.ToString()); item.SubItems.Add(e.TestTime.ToString()); item.SubItems.Add(e.TestFailed.ToString()); this.lstTestResults.Items.Add(item); this.lstTestResults.EnsureVisible(lstTestResults.Items.Count - 1); }
private void OnTestResult(object Sender, TestResultEventArgs e) { this.lstTestResults.Invoke(new ShowTestResultHandler(this.ShowTestResult), new object[] { e }); }