Пример #1
0
        /*
         * internal void SetTrainingMessage(string text)
         * {
         *  // InvokeRequired required compares the thread ID of the
         *  // calling thread to the thread ID of the creating thread.
         *  // If these threads are different, it returns true.
         *  if (this.trainingMessage.InvokeRequired)
         *  {
         *      SetTrainingMessageCallback d = new SetTrainingMessageCallback(SetTrainingMessage);
         *      this.Invoke(d, new object[] { text });
         *  }
         *  else
         *  {
         *      this.trainingMessage.Text = text;
         *  }
         * }
         * */

        internal void SetMatlabReturn(string text)
        {
            // InvokeRequired required compares the thread ID of the
            // calling thread to the thread ID of the creating thread.
            // If these threads are different, it returns true.
            if (this.matlabReturnValue.InvokeRequired)
            {
                SetMatlabReturnCallback d = new SetMatlabReturnCallback(SetMatlabReturn);
                this.Invoke(d, new object[] { text });
            }
            else
            {
                this.matlabReturnValue.Text = text;
            }
        }
Пример #2
0
 /*
 internal void SetTrainingMessage(string text)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.trainingMessage.InvokeRequired)
     {
         SetTrainingMessageCallback d = new SetTrainingMessageCallback(SetTrainingMessage);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.trainingMessage.Text = text;
     }
 }
  * */
 internal void SetMatlabReturn(string text)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.matlabReturnValue.InvokeRequired)
     {
         SetMatlabReturnCallback d = new SetMatlabReturnCallback(SetMatlabReturn);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.matlabReturnValue.Text = text;
     }
 }