public int WaitForExit(System.Diagnostics.Process process)
        {
            RunProcessForm form = new RunProcessForm(process);

            form.ShowDialog();
            return(process.ExitCode);
        }
 public int WaitForExit(System.Diagnostics.Process process)
 {
     RunProcessForm form = new RunProcessForm(process);
     form.ShowDialog();
     return process.ExitCode;
 }