Last change
on this file since 12762 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.8 KB
|
Line | |
---|
1 | // -------------------------------------------------------------------------------------------------------------------- |
---|
2 | // <copyright file="RegisterLayoutPluginCommand.cs" company="Jamie Dixon Ltd"> |
---|
3 | // Jamie Dixon |
---|
4 | // </copyright> |
---|
5 | // <summary> |
---|
6 | // Defines the RegisterLayoutPluginCommand type. |
---|
7 | // </summary> |
---|
8 | // -------------------------------------------------------------------------------------------------------------------- |
---|
9 | |
---|
10 | namespace GraphVizWrapper.Commands |
---|
11 | { |
---|
12 | using GraphVizWrapper.Queries; |
---|
13 | |
---|
14 | public class RegisterLayoutPluginCommand : IRegisterLayoutPluginCommand |
---|
15 | { |
---|
16 | private readonly IGetProcessStartInfoQuery _getProcessStartInfoQuery; |
---|
17 | private readonly IGetStartProcessQuery _getStartProcessQuery; |
---|
18 | |
---|
19 | public RegisterLayoutPluginCommand(IGetProcessStartInfoQuery getProcessStartInfoQuery, IGetStartProcessQuery getStartProcessQuery) |
---|
20 | { |
---|
21 | _getStartProcessQuery = getStartProcessQuery; |
---|
22 | _getProcessStartInfoQuery = getProcessStartInfoQuery; |
---|
23 | } |
---|
24 | |
---|
25 | public void Invoke(string configFilePath, Enums.RenderingEngine renderingEngine) |
---|
26 | { |
---|
27 | var processStartInfo = _getProcessStartInfoQuery.Invoke(new ProcessStartInfoWrapper |
---|
28 | { |
---|
29 | FileName = configFilePath, |
---|
30 | UseShellExecute = false, |
---|
31 | Arguments = "-c", |
---|
32 | CreateNoWindow = false |
---|
33 | }); |
---|
34 | |
---|
35 | using (_getStartProcessQuery.Invoke(processStartInfo)) { } |
---|
36 | } |
---|
37 | |
---|
38 | public void Invoke() |
---|
39 | { |
---|
40 | throw new System.NotImplementedException(); |
---|
41 | } |
---|
42 | } |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.