-
Notifications
You must be signed in to change notification settings - Fork 5
/
Program.cs
executable file
·49 lines (43 loc) · 1.42 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.Globalization;
using System.Threading;
using System.Windows.Forms;
namespace MarkAble2
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (args.Length > 0)
{
foreach (string arg in args)
{
if (arg.Equals("-debug", StringComparison.OrdinalIgnoreCase))
{
Global.Options.DebugMode = true;
}
//allow command-line selection of language, overrides current culture.
if (arg.Equals("-de", StringComparison.OrdinalIgnoreCase))
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
}
if (arg.Equals("-en", StringComparison.OrdinalIgnoreCase))
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
}
}
}
Application.Run(new frmSplash());
if (!Registration.IsExhausted())
{
Application.Run(new frmIntro());
}
}
}
}