/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
bool Exist = false;
System.Diagnostics.Process CIP = System.Diagnostics.Process.GetCurrentProcess();
System.Diagnostics.Process[] CIPR = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process p in CIPR)
{
if (p.ProcessName == CIP.ProcessName && p.Id!=CIP.Id)
{
Exist = true;
}
}
if (Exist)
{
WinFormBLL.CommonBLL.ShowErrMessage("对不起,应用程序正在运行中!,请不要重复启动!");
return;
}
else
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmSplash());
}
}
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
bool Exist = false;
System.Diagnostics.Process CIP = System.Diagnostics.Process.GetCurrentProcess();
System.Diagnostics.Process[] CIPR = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process p in CIPR)
{
if (p.ProcessName == CIP.ProcessName && p.Id!=CIP.Id)
{
Exist = true;
}
}
if (Exist)
{
WinFormBLL.CommonBLL.ShowErrMessage("对不起,应用程序正在运行中!,请不要重复启动!");
return;
}
else
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmSplash());
}
}