public void Wait(TimeSpan maxWait) { if (_process != null) _process.WaitForExit(Convert.ToInt32(maxWait.TotalMilliseconds)); }