Files
2025-08-08 14:58:38 +08:00

25 lines
610 B
C#

using System;
using System.Windows;
namespace VHDMounter
{
class Program
{
[STAThread]
static void Main(string[] args)
{
// 检查是否已有实例运行
using (var mutex = new System.Threading.Mutex(true, "VHDMounterApp", out bool createdNew))
{
if (!createdNew)
{
return; // 已有实例运行,退出
}
var app = new Application();
var mainWindow = new MainWindow();
app.Run(mainWindow);
}
}
}
}