public StartProcess ( bool waitForExit ) : void | ||
waitForExit | bool | |
return | void |
public void StartProcess(bool waitForExit)
{
if (IsProcessStarted()) return;
using (var process = Process.Start(_processStartInfo))
{
if (process != null && waitForExit) process.WaitForExit();
}
}