using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Threading;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace iWareSda
|
{
|
static class Program
|
{
|
/// <summary>
|
/// 应用程序的主入口点。
|
/// </summary>
|
[STAThread]
|
static void Main()
|
{
|
Application.EnableVisualStyles();
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
bool result;
|
Mutex MyMutex = new Mutex(true, "XiGang_iWareSda", out result);
|
if (result)
|
{
|
Application.Run(new SdaMainForm());
|
}
|
else
|
{
|
//程序已经启动
|
MessageBox.Show("iWareSda程序已经启动,请勿重复启动!");
|
}
|
}
|
}
|
}
|