Example #1
0
        public override CloseEventArgs ShowDialog()
        {
            if (CurrentMethod == null)
            {
                form = new frmSelectTest(Methods);


                if (form.ShowDialog() == DialogResult.OK)
                {
                    CurrentMethod = form.SelectedMethod;
                }
            }

            if (CurrentMethod != null)
            {
                frmTest form = new frmTest(CurrentMethod);
                form.LoadDataFromMethod();
                form.ShowDialog();
                LastResult = new TestsCloseEventArgs((double)CurrentMethod.finRes);
                OnClose(LastResult);
                return(LastResult);
            }

            return(null);
        }
Example #2
0
 public override void Show(Form MdiParent)
 {
     // here was no parameters in constructor for Module.
     if (CurrentMethod == null)
     {
         form = new frmSelectTest(Methods);
         if (MdiParent != null && MdiParent.IsMdiContainer)
         {
             form.MdiParent = MdiParent;
         }
         form.Show();
         form.FormClosed += form_frmSelectTestClosed;
     }
     // There was a parametr in constructor for Module.
     else
     {
         form_frmSelectTestClosed(null, null);
     }
 }