From 0e9ba4ee9ee5c37a9379de1d352fd4973d3691f7 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期六, 02 八月 2025 08:56:20 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/Program.cs | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/Program.cs b/DevApp/Gs.DevApp/Program.cs index 0af929f..5474a54 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; @@ -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