-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
26 lines (25 loc) · 884 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace EVIPBlocker
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
frmMain frm = null;
if (args == null || args.Length == 0)
frm = new frmMain(false, false);
else if (args != null && args.Length > 0 && args[0] != null && args[0].ToUpper() == "/START")
frm = new frmMain(true, false);
else if (args != null && args.Length > 0 && args[0] != null && args[0].ToUpper() == "/SERVICE")
frm = new frmMain(true, true);
Application.Run(frm);
}
}
}