Beispiel #1
0
 public AnalysisForm(OperationForm parentForm)
 {
     mOpForm = parentForm;
     InitializeComponent();
     TabText        = "Study Chart";
     this.Disposed += new EventHandler(AnalysisForm_Disposed);
 }
        private void RegisterAsListenerOnControl(OperationForm opForm)
        {
            ToolStripButton control = (ToolStripButton)opForm.GetOperatorControl(mButtonTriggerDef.ButtonLabel);

            control.Click += new EventHandler(control_Click);
            buttonsRegisteredWith.Add(control);
        }
Beispiel #3
0
 public ActiveTestLogForm(OperationForm opForm)
 {
     InitializeComponent();
     TabText        = "Log of Active Test";
     mOpForm        = opForm;
     this.Disposed += new EventHandler(ActiveTestLogForm_Disposed);
 }
Beispiel #4
0
 public OperationReportForm(OperationForm opForm)
 {
     InitializeComponent();
     TabText        = "Report";
     mOpForm        = opForm;
     this.Disposed += new EventHandler(OperationReportForm_Disposed);
 }
 public FavoriteSettingsForm(OperationForm opForm)
 {
     InitializeComponent();
     TabText        = "Favorite Settings";
     mOpForm        = opForm;
     this.Disposed += new EventHandler(FavoriteSettingsForm_Disposed);
 }
 public OperationLogForm(OperationForm opForm)
 {
     InitializeComponent();
     TabText = "Log";
     mOpForm = opForm;
     mOpForm.TestSelectionChange += new TestExecution.TestExecutionDelegate(mOpForm_TestSelectionChange);
     this.Disposed += new EventHandler(OperationLogForm_Disposed);
 }
Beispiel #7
0
 /// <summary>
 /// This method is called by the GUI thread to let the DefinerDefinition know a new form exists.  In the TestSequence thread, the active instance will check to see if there are new forms so it can listen to their buttons
 /// </summary>
 /// <param name="theNewForm"></param>
 public void RegisterNewOperatorForm(OperationForm theNewForm)
 {
     using (TimedLock.Lock(mNewFormsThatNeedButtonListeners)) // LOCKING FOR THREAD SAFETY
     {
         mNewFormsThatNeedButtonListeners.Add(theNewForm);
         mNewFormWaiting = true;
     }
 }
Beispiel #8
0
 public FavoriteValuesForm(OperationForm parentForm)
 {
     InitializeComponent();
     TabText     = "Favorite Values";
     mParentForm = parentForm;
     mParentForm.TestSelectionChange += new TestExecution.TestExecutionDelegate(mParentForm_TestSelectionChange);
     this.Disposed += new EventHandler(FavoriteValuesForm_Disposed);
 }
 public ImageBigViewForm(OperationForm parentForm)
 {
     InitializeComponent();
     TabText       = "Big View";
     mOpForm       = parentForm;
     mOpPictureBox = new OperationPictureBox(this, new ImageDisplayDef(parentForm.CurrentSequence));
     imageLayoutPanel.Controls.Add(mOpPictureBox);
     Resize        += new EventHandler(ImageBigViewForm_Resize);
     FormClosing   += new FormClosingEventHandler(ImageBigViewForm_FormClosing);
     this.Disposed += new EventHandler(OperationLogForm_Disposed);
 }
 public override bool CheckTrigger()
 {
     while (mButtonTriggerDef.IsNewFormWaiting())
     {
         OperationForm theNewOpForm = mButtonTriggerDef.GetNewWaitingForm();
         if (theNewOpForm != null)
         {
             RegisterAsListenerOnControl(theNewOpForm);
         }
     }
     return(mIsComplete);
 }
 public ButtonTriggerInstance(ButtonTriggerDefinition theDefinition, TestExecution testExecution) : base(theDefinition, testExecution)
 {
     mButtonTriggerDef = theDefinition;
     // iterate through test collections, get button, register as listener
     foreach (TestExecutionCollection collection in theDefinition.TestSequence().mTestCollections)
     {
         OperationForm opForm = collection.OperationForm;
         if (opForm != null)
         {
             RegisterAsListenerOnControl(opForm);
         }
     }
 }
Beispiel #12
0
        public OperationSequenceTreeForm(OperationForm opForm)
        {
            InitializeComponent();
            TabText  = "Sequences";
            mOpForm  = opForm;
            mProject = opForm.Project;

            mProject.NewTestSequence      += new TestSequence.TestSequenceDelegate(HandleNewTestSequence);
            mProject.TestSequenceDisposed += new TestSequence.TestSequenceDelegate(HandleDisposedTestSequence);

            foreach (TestSequence seq in mProject.mTestSequences)
            {
                HandleNewTestSequence(seq);
            }
            this.Disposed += new EventHandler(OperationSequenceTreeForm_Disposed);
        }
Beispiel #13
0
        public ImageHistoryForm(OperationForm parentForm)
        {
            InitializeComponent();
            TabText     = "Images";
            mParentForm = parentForm;
            ResizeImageTable(1, 1);
            mParentForm.TestSelectionChange           += new TestExecution.TestExecutionDelegate(HandleTestSelectionChange);
            mParentForm.TestCollectionSelectionChange += new OperationForm.TestCollectionSelectionChangeDelegate(HandleTestCollectionSelectionChange);
            Resize     += new EventHandler(ImageHistoryForm_Resize);
            FormClosed += new FormClosedEventHandler(ImageHistoryForm_FormClosed);
            //            LoadImageTable(0);
//            ResizeImageTable(4, 2);
            this.ContextMenu = new ContextMenu();
            MenuItem selectImageMenu = this.ContextMenu.MenuItems.Add("Table Size");

            FormClosing += new FormClosingEventHandler(ImageHistoryForm_FormClosing);
        }
Beispiel #14
0
        public OperationForm GetNewWaitingForm()
        {
            OperationForm aForm = null;

            using (TimedLock.Lock(mNewFormsThatNeedButtonListeners)) // LOCKING FOR THREAD SAFETY
            {
                if (mNewFormsThatNeedButtonListeners.Count > 0)
                {
                    aForm = mNewFormsThatNeedButtonListeners[0];
                    mNewFormsThatNeedButtonListeners.RemoveAt(0);
                }

                if (mNewFormsThatNeedButtonListeners.Count == 0)
                {
                    mNewFormWaiting = false;
                }
            }
            return(aForm);
        }