-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
49 lines (47 loc) · 1.25 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace DNNConnect.DNNResxCompare
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
switch (args.Length)
{
case 0:
// interactive mode;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
break;
case 1:
// help?
string message = "";
if (args[0] == "/?" || args[0] == "-h" || args[0] == "/h")
{
message = "DNNRexCompare \"PreviousFolder\" \"NextFolder\" \"OutputFile\"\n\n" +
"-PreviousFolder: Directory containing the base version of DNN to compare\n" +
"-NextFolder: Directory containing the new version of DNN to compare to\n" +
"-OutputFile: Full path and name of the xml file where the output report will be saved\n";
}
else
{
message = "Incorrect parameters. Use /? for help.";
}
MessageBox.Show(message, "DNNResxCompare");
break;
case 3:
// command line mode
Comparer c = new Comparer();
c.Compare(args[0], args[1], args[2]);
break;
}
}
}
}