-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
36 lines (33 loc) · 1.01 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
using System;
using System.Threading;
using System.Windows.Forms;
namespace EmuELEC_GameProgressBackup
{
static class Program
{
/// <summary>
/// Ponto de entrada principal para o aplicativo.
/// </summary>
[STAThread]
static void Main()
{
Mutex m = new Mutex(true, $"my{Application.ProductName}", out bool createdNew);
m.Dispose();
if (!createdNew)
{
// myApp is already running...
MessageBox.Show(Properties.Resources.MessageBoxText01,
Application.ProductName,
MessageBoxButtons.OK,
MessageBoxIcon.Information);
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
using (FrmMain frm = new FrmMain())
{
Application.Run(frm);
}
}
}
}