From 40036d84a94b47b82b2d6316fb63df5e2847c6df Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 10 七月 2025 11:17:46 +0800 Subject: [PATCH] 首检 --- DevApp/Gs.DevApp/Program.cs | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DevApp/Gs.DevApp/Program.cs b/DevApp/Gs.DevApp/Program.cs index 0af929f..4dd0414 100644 --- a/DevApp/Gs.DevApp/Program.cs +++ b/DevApp/Gs.DevApp/Program.cs @@ -2,8 +2,8 @@ using CefSharp.WinForms; using Gs.DevApp.DevFrm; using Gs.DevApp.DevFrm.Work; +using Gs.DevApp.Properties; using System; -using System.Configuration; using System.Diagnostics; using System.IO; using System.Windows.Forms; @@ -40,7 +40,7 @@ /// </summary> private static void _startLogin() { - //Application.Run(new XtraForm1()); + //Application.Run(new Gs.DevApp.XtraForm1()); //return; CefSettings settings = new CefSettings(); settings.Locale = "zh-CN"; @@ -52,15 +52,16 @@ if (fmLogin.DialogResult == DialogResult.OK) { //Application.Run(new DevFrm.User.SysMenu()); - string IsWeight = "0"; + //return; + bool IsWeight = false; try { - IsWeight = ConfigurationManager.AppSettings["IsWeight"]; + IsWeight = Settings.Default.isWeight; } catch (Exception) { } - if (IsWeight == "1") + if (IsWeight == true) Application.Run(new Frm_Work09()); else Application.Run(new FrmMain()); -- Gitblit v1.9.3