-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (36 loc) · 1.02 KB
/
Program.cs
File metadata and controls
39 lines (36 loc) · 1.02 KB
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
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Resource_Redactor
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
try
{
string path = null;
#if DEBUG
path = "../TheTestEver/TheTestEver.ced";
#endif
if (args.Length >= 1 && args[0] != null) path = args[0];
for (int i = 1; i < args.Length; i++)
{
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new RedactorForm(path));
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "Can not execute resource redactor.",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}