Пример #1
0
        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);
        }
Пример #2
0
		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);
		}