/
Program.cs
37 lines (30 loc) · 936 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
36
37
using System;
using System.Threading;
using System.Windows.Forms;
namespace OnePushSnap
{
internal static class Program
{
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
/// </summary>
[STAThread]
static void Main()
{
Mutex mtx = new Mutex(false, "one");
/// Prevent application from multiplying
if (mtx.WaitOne(0, false) == false)
{
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
/// Run application without window
//Application.Run(new Form1());
/// get single instance
//new configuration_form();
//configuration_form.getInstance();
Application.Run(configuration_form.getInstance());
}
}
}