コード例 #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            this.ShutdownMode = ShutdownMode.OnExplicitShutdown;
            //验证License
            if (!StartWin.CanStart())
            {
                this.Shutdown();
            }
            //检查上传地图服务器信息是否配置
            HostConfig.InitHostConfig();
            //启动界面
            CircleProgressBox f = new CircleProgressBox();

            f.ShowPregress();
            f.SetDefaultDescription();
            //Thread.Sleep(3000);//3秒后进入系统
            f.CloseProgress();
            base.OnStartup(e);
        }