public static void StartSilent(this Process p, LoggerForm aApp) { logger = aApp; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.OutputDataReceived += P_OutputDataReceived; p.ErrorDataReceived += P_OutputDataReceived; p.StartInfo.UseShellExecute = false; p.StartInfo.CreateNoWindow = true; p.EnableRaisingEvents = true; p.Start(); p.BeginOutputReadLine(); p.BeginErrorReadLine(); p.WaitForExit(); }
public CueDirectoryConverter(LoggerForm aApp) { app = aApp; }