protected override void OnStartup(StartupEventArgs e) { log4net.Config.XmlConfigurator.Configure(); LogManager.LogManager.Info("启动软件"); //应用程序关闭时,才 System.Windows.Application.Shutdown 调用 this.ShutdownMode = ShutdownMode.OnExplicitShutdown; //验证License if (!RegisterMaster.CanStart()) { this.Shutdown(); } //登录 bool?loginDlgResult = (new LoginDlg(AppSettings["DEFAULT_USER_MAIL"])).ShowDialog(); if (!loginDlgResult.HasValue || !loginDlgResult.Value) { this.Shutdown(); } circleProgressBox.ShowPregress(); base.OnStartup(e); }
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); }