Ejemplo n.º 1
0
 private void WriteOutputText(string text)
 {
     if (this.outputText.InvokeRequired)
     {
         WriteOutputTextCallback d = new WriteOutputTextCallback(WriteOutputText);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.outputText.AppendText(text);
         this.outputText.SelectionStart = this.outputText.TextLength;
         this.outputText.ScrollToCaret();
     }
 }
Ejemplo n.º 2
0
 private void WriteOutputText(string text)
 {
   if (this.outputText.InvokeRequired)
   {
     WriteOutputTextCallback d = new WriteOutputTextCallback(WriteOutputText);
     this.Invoke(d, new object[] { text });
   }
   else
   {
     this.outputText.AppendText(text);
     this.outputText.SelectionStart = this.outputText.TextLength;
     this.outputText.ScrollToCaret();
   }
 }