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 { /// /// 应用程序的主入口点。 /// [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程序已经启动,请勿重复启动!"); } } } }