static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
bool createdNew = false;
Mutex mutex = new Mutex(false, "singlestart", out createdNew);
if (!createdNew)
{
MessageBox.Show("Can‘t start application twice!");
Application.Exit();
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new ACSTest());
}
}
时间: 2024-10-13 13:54:26