AEMManager.ConsoleWindow.Process_ErrorDataReceived C# (CSharp) Method

Process_ErrorDataReceived() public method

public Process_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object
e System.Diagnostics.DataReceivedEventArgs
return void
        public void Process_ErrorDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (string.IsNullOrEmpty(e.Data)) {
            return;
              }
              int selStart = txtConsoleOutput.TextLength;
              txtConsoleOutput.AppendText(e.Data);
              txtConsoleOutput.Select(selStart, txtConsoleOutput.TextLength);
              txtConsoleOutput.SelectionColor = Color.Red;
              txtConsoleOutput.AppendText("\n");
        }