2025-03-28 09:49:56 +08:00

31 lines
743 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace SoftCheck
{
static class Program
{
private static System.Threading.Mutex mutex;
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
mutex = new System.Threading.Mutex(true, "SoftCheck");
if (mutex.WaitOne(0, false))
{
Application.Run(new Check());
}
else
{
Application.Exit();
}
}
}
}