static System.Threading.Mutex mutex = new System.Threading.Mutex(true, "应用程序名-不带.exe");
//程序只能启动一个
bool flag = !mutex.WaitOne(0, false);
if (flag)
{
Application.Exit();
return;
}