From 6a89dc5916749e18dc77b15c7c27ccd2ada38e6b Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 30 六月 2025 17:20:27 +0800 Subject: [PATCH] bug --- 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