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.Init(ClientConfiguration.Instance.AppIdentifier, PlatformType.Winform, IPAddress.Parse("127.0.0.1"), 0); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); bool notRun; //using (Mutex mutex = new Mutex(true, Application.ProductName, out notRun)) //{ // if (notRun) Application.Run(new FrmWin()); //else //MessageBox.Show("程序正在运行", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); //} }
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.Init(ADGSAppConfig.GetInstance().AppIdentifier, PlatformType.Winform, IPAddress.Parse("127.0.0.1"), 0); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException); bool notRun; using (Mutex mutex = new Mutex(true, Application.ProductName, out notRun)) { if (notRun) { Application.Run(new Form1()); } else { MessageBox.Show("程序正在运行", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }
static void Main(string[] args) { // 检测更新 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.Init(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform); DotNetBarUtil.InitLocalization(); //bool notRunning; //using (Mutex mutex = new Mutex(true, Application.ProductName, out notRunning)) //{ // if (notRunning) // { using (CefAppImpl application = new CefAppImpl()) { application.Run(); } //} //else // MessageBox.Show("程序正在运行中","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning); //} }
static void Main() { // BasisPlatform:应用程序初始化 Basiser basiser = Basiser.GetInstance(); basiser.Init(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform, IPAddress.Parse("127.0.0.1"), 0); 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()); } } }