private void RunCommandLine(string executable, string workingDirectory, string arguments = null) { var processForm = new ProcessProgressForm { ProcessCompleted = processCompleted }; processForm.ProcessCommand = executable; if (arguments != null) { processForm.ProcessArguments = arguments; } processForm.ProcessWorkingDir = workingDirectory; processForm.BeginProcess(); processForm.ShowDialog(this); }
private void RunCommandLine(string executable, string workingDirectory, string arguments = null) { var processForm = new ProcessProgressForm {ProcessCompleted = processCompleted}; processForm.ProcessCommand = executable; if (arguments != null) { processForm.ProcessArguments = arguments; } processForm.ProcessWorkingDir = workingDirectory; processForm.BeginProcess(); processForm.ShowDialog(this); }