public CommandTestForm(Process nonStartedProcess)
{
InitializeComponent();
_Process = nonStartedProcess;
_Process.OutputDataReceived += new DataReceivedEventHandler(_Process_OutputDataReceived);
_Process.ErrorDataReceived += new DataReceivedEventHandler(_Process_OutputDataReceived);
_Process.Exited += new EventHandler(_Process_Exited);
_Process.StartInfo.RedirectStandardError = true;
_Process.StartInfo.RedirectStandardOutput = true;
_Process.StartInfo.CreateNoWindow = true;
_Process.StartInfo.UseShellExecute = false;
_Process.EnableRaisingEvents = true;
txtOutput.Text = nonStartedProcess.StartInfo.FileName + " " + nonStartedProcess.StartInfo.Arguments + "\r\n";
}