public void ReadStdOut() { string _sLine; if (oTool.dOut != null) { while (!proc.HasExited) { _sLine = proc.StandardOutput.ReadLine(); if (_sLine != "") { oTool.dOut(oTool, _sLine); } else { Thread.Sleep(1); } } } }
public static void fAppOutput(LauchTool _oThis, string _sOut) { // lock(Data.oLockOutPut) { if (_oThis.dOut != null) { _oThis.dOut(_oThis, _sOut); } else { /* * if(_sOut.Length > 3 && _sOut[3] == '%') { * Console.Write( "\r\r" + _sOut.Substring(4,_sOut.Length-4) ); * }else { */ lock (Debug.oLockOutPut) { //??? Debug.fTrace(_sOut); } // } } // } }