Last change
on this file since 13825 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[12762] | 1 | // -------------------------------------------------------------------------------------------------------------------- |
---|
| 2 | // <copyright file="GetProcessStartInfoQuery.cs" company="Jamie Dixon Ltd"> |
---|
| 3 | // Jamie Dixon |
---|
| 4 | // </copyright> |
---|
| 5 | // <summary> |
---|
| 6 | // Defines the GetProcessStartInfoQuery type. |
---|
| 7 | // </summary> |
---|
| 8 | // -------------------------------------------------------------------------------------------------------------------- |
---|
| 9 | |
---|
| 10 | using System.IO; |
---|
| 11 | |
---|
| 12 | namespace GraphVizWrapper.Queries |
---|
| 13 | { |
---|
| 14 | public class GetProcessStartInfoQuery : IGetProcessStartInfoQuery |
---|
| 15 | { |
---|
| 16 | public System.Diagnostics.ProcessStartInfo Invoke(IProcessStartInfoWrapper startInfoWrapper) |
---|
| 17 | { |
---|
| 18 | return new System.Diagnostics.ProcessStartInfo |
---|
| 19 | { |
---|
| 20 | WorkingDirectory = Path.GetDirectoryName(startInfoWrapper.FileName) ?? "", |
---|
| 21 | FileName = '"' + startInfoWrapper.FileName + '"', |
---|
| 22 | Arguments = startInfoWrapper.Arguments, |
---|
| 23 | RedirectStandardInput = startInfoWrapper.RedirectStandardInput, |
---|
| 24 | RedirectStandardOutput = startInfoWrapper.RedirectStandardOutput, |
---|
| 25 | RedirectStandardError = startInfoWrapper.RedirectStandardError, |
---|
| 26 | UseShellExecute = startInfoWrapper.UseShellExecute, |
---|
| 27 | CreateNoWindow = startInfoWrapper.CreateNoWindow |
---|
| 28 | }; |
---|
| 29 | } |
---|
| 30 | } |
---|
| 31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.