-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProgram.cs
35 lines (31 loc) · 978 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using SolutionNodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SolutionNodesLauncher {
class Program {
public static Action<ProjectsNodesSettings, string>[] argSetters =
new Action<ProjectsNodesSettings, string>[] {
(s, v) => s.solutionName = v,
(s, v) => s.projectName = v,
(s, v) => s.viewSize = (Double.Parse(v), s.viewSize.h),
(s, v) => s.viewSize = (s.viewSize.w, Double.Parse(v)),
(s, v) => s.nodeSize = (Double.Parse(v), s.nodeSize.h),
(s, v) => s.nodeSize = (s.nodeSize.w, Double.Parse(v)),
(s, v) => s.VSPorces = v,
(s, v) => s.VSName = v,
};
[STAThread]
public static void Main(string[] args) {
var sets = new ProjectsNodesSettings();
for (int i = 0; i < args.Length; i++)
argSetters[i](sets, args[i]);
var w = new MainWindow(sets);
Application app = new Application();
app.Run(w);
}
}
}