Example #1
0
 private static ProcessLaunchContext CreateContextForGetOutput(string fileName, string?args)
 {
     return(ProcessLaunchContext.Create(
                fileName: fileName,
                args: args,
                showWindow: false,
                useShellExecute: false
                ));
 }
Example #2
0
 private static ProcessLaunchContext CreateContextForOpenFile(FileInfo file)
 {
     return(ProcessLaunchContext.Create(
                file: file,
                args: null,
                showWindow: true,
                useShellExecute: true
                ));
 }