Exemplo n.º 1
0
        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);
            //}
        }
Exemplo n.º 2
0
        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.InitBasisPlatform(CommonAppConfig.GetInstance().AppIdentifier, PlatformType.Winform);

            DotNetBarUtil.InitLocalization();

            using (CefAppImpl application = new CefAppImpl())
            {
                application.Run();
            }
        }