using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
namespace BT.DataAssist
{
static class Program
{
///
/// 应用程序的主入口点。
///
[STAThread]
static void Main()
{
bool bCreatedNew;
Mutex m = new Mutex(false, “BT.DataAssist”, out bCreatedNew);
if (bCreatedNew)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
else
{
MessageBox.Show(“已经有相同的实例在运行。”, “系统提示”, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}