Пример #1
0
 /**
  * [FR]
  * Il y a du nouveau sur le sortie standart de cette instance de node
  */
 public void _nodeInstance_NodeInstanceStandardOutput(object sender, NodeInstanceStandardOutputEventArgs e)
 {
     if (InvokeRequired)
     {
         outTextBox.Invoke((MethodInvoker)delegate { outTextBox.Text = e.nodeInstance.standardOutputString; });
         outTextBox.Invoke((MethodInvoker)delegate { outTextBox.SelectionStart = outTextBox.Text.Length; });
         outTextBox.Invoke((MethodInvoker)delegate { outTextBox.ScrollToCaret(); });
     }
     else
     {
         outTextBox.Text = e.nodeInstance.standardOutputString;
         outTextBox.SelectionStart = outTextBox.Text.Length;
         outTextBox.ScrollToCaret();
     }
 }
Пример #2
0
 public void OnNodeInstanceStandardOutput(NodeInstanceStandardOutputEventArgs e = null)
 {
     if (NodeInstanceStandardOutput != null)
         NodeInstanceStandardOutput(this, e);
     if (e!=null)
         Console.WriteLine("on data "+e.newString);
 }