示例#1
0
文件: Form1.cs 项目: hitswa/winforms
		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 ();
		}
示例#2
0
        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();
        }
示例#3
0
		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);
		}
示例#4
0
        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);
        }
示例#5
0
		public void OnEndTest (EndTestEventArgs args)
		{
		}
示例#6
0
 public void OnEndTest(EndTestEventArgs args)
 {
 }
示例#7
0
 protected virtual void OnEndTest(EndTestEventArgs args)
 {
     EndTest(this, args);
 }
示例#8
0
		protected virtual void OnEndTest (EndTestEventArgs args)
		{
			EndTest (this, args);
		}