void TestForm_EndTestHandler (object o, EndTestEventArgs args) { if (!args.ShowDefaultDialog) return; result_form.Interval = args.Interval; result_form.ListView = test_form.Tester.ListView; result_form.ShowDialog (); }
void TestForm_EndTestHandler(object o, EndTestEventArgs args) { if (!args.ShowDefaultDialog) { return; } result_form.Interval = args.Interval; result_form.ListView = test_form.Tester.ListView; result_form.ShowDialog(); }
void StartTest () { // We should add a better profiling facility // including memory allocations and more DateTime dt1 = DateTime.Now; tester.StartTest (); TimeSpan interval = DateTime.Now - dt1; EndTestEventArgs args = new EndTestEventArgs (interval); DialogResult = DialogResult.OK; // Close this form - This is a little nasty OnEndTest (args); tester.OnEndTest (args); }
void StartTest() { // We should add a better profiling facility // including memory allocations and more DateTime dt1 = DateTime.Now; tester.StartTest(); TimeSpan interval = DateTime.Now - dt1; EndTestEventArgs args = new EndTestEventArgs(interval); DialogResult = DialogResult.OK; // Close this form - This is a little nasty OnEndTest(args); tester.OnEndTest(args); }
public void OnEndTest (EndTestEventArgs args) { }
public void OnEndTest(EndTestEventArgs args) { }
protected virtual void OnEndTest(EndTestEventArgs args) { EndTest(this, args); }
protected virtual void OnEndTest (EndTestEventArgs args) { EndTest (this, args); }