using System; using System.Threading; using System.Windows.Forms; namespace iWareCC { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); bool result; Mutex MyMutex = new Mutex(true, "LA21030WuHanMuYe_iWareCC", out result); if (result) { FormCC cc = new FormCC(); //暂时注释 [EditBy shaocx,2022-01-24] //if (SystemCheckForm.Frm_SystemCheckResult()) //{ cc.Show(); //} Yitter.IdGenerator.IdGeneratorOptions options = new Yitter.IdGenerator.IdGeneratorOptions(1); Yitter.IdGenerator.YitIdHelper.SetIdGenerator(options); Application.Run(); } else { //程序已经启动 MessageBox.Show("程序已启动"); } } } }