static void Main() { // 检测更新 AU.Updater updater = new AU.Updater(); if (updater.NeedUpdate()) { Process.Start("AutoUpdater.exe"); Environment.Exit(0); } // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.EnabledEbiaSupport = true; basiser.InitBasisPlatform(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DotNetBarUtil.InitLocalization(); bool notRunning; using (Mutex mutex = new Mutex(true, Application.ProductName, out notRunning)) { if (notRunning) { Application.Run(new FrmLogin()); } } }
static void Main() { // 检测更新 AU.Updater updater = new AU.Updater(); if (updater.NeedUpdate()) { Process.Start("AutoUpdater.exe"); Environment.Exit(0); } // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.EnabledEbiaSupport = true; basiser.InitBasisPlatform(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ApplicationExit += new EventHandler(Application_ApplicationExit); DotNetBarUtil.InitLocalization(); CMCS.Common.DAO.CommonDAO.GetInstance().SetSignalDataValue(CommonAppConfig.GetInstance().AppIdentifier, eSignalDataName.系统.ToString(), "1"); Application.Run(new FrmLogin()); }
static void Main() { // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.EnabledEbiaSupport = false; basiser.InitBasisPlatform(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DotNetBarUtil.InitLocalization(); Application.Run(new MDIParent1()); }
static void Main() { // 检测更新 AU.Updater updater = new AU.Updater(); if (updater.NeedUpdate()) { Process.Start("AutoUpdater.exe"); Environment.Exit(0); } // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.EnabledEbiaSupport = true; basiser.InitBasisPlatform(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); bool notRunning; using (Mutex mutex = new Mutex(true, Application.ProductName, out notRunning)) { if (notRunning) { //int minute = 5, surplus = minute; //while (minute > 0) //{ // double d = minute - Environment.TickCount / 1000 / 60; // if (Environment.TickCount < 0 || d <= 0) break; // Log4Neter.Info("开机延迟启动,剩余" + d + "分钟"); // Thread.Sleep(60000); // surplus--; //} Application.Run(new Form1()); } } }
static void Main() { // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.EnabledEbiaSupport = true; basiser.InitBasisPlatform(ADGSAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); bool notRunning; using (Mutex mutex = new Mutex(true, Application.ProductName, out notRunning)) { if (notRunning) { Application.Run(new Form1()); } } }