-
Notifications
You must be signed in to change notification settings - Fork 23
/
Program.cs
30 lines (29 loc) · 1.02 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
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
namespace FirehoseFinder
{
static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STAThread]
static void Main()
{
_ = new Mutex(true, Marshal.GetTypeLibGuidForAssembly(Assembly.GetExecutingAssembly()).ToString(), out bool onlyone);
if (onlyone)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Formfhf());
}
else MessageBox.Show(
"应用程序的一个实例已在运行" + Environment.NewLine +
"Один экземпляр приложения уже запущен" + Environment.NewLine +
"One instance of the application is already running");
}
}
}