Beispiel #1
0
 private void ReceiveOutput()
 {
     try
     {
         while (true)
         {
             if (IsClosed)
             {
                 return;
             }
             OnOutputReceivedArgs args = new OnOutputReceivedArgs();
             args.ReceivedOutput = mSocketTalker.ReceiveString();
             mForm.Invoke(mOnOutputReceivedHandler, this, args);
         }
     }
     catch (Exception e)
     {
         Close(e);
     }
 }
 private void OnOutputReceived(object sender, OnOutputReceivedArgs e)
 {
     mConsoleOutput.AppendText(e.ReceivedOutput);
 }