From 931767239577c1a81f298ddccd65e3137c80b326 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期五, 22 八月 2025 08:28:22 +0800 Subject: [PATCH] 称重 --- DevApp/Gs.DevApp/Program.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/Program.cs b/DevApp/Gs.DevApp/Program.cs index 0af929f..da19396 100644 --- a/DevApp/Gs.DevApp/Program.cs +++ b/DevApp/Gs.DevApp/Program.cs @@ -1,9 +1,11 @@ 锘縰sing CefSharp; using CefSharp.WinForms; using Gs.DevApp.DevFrm; +using Gs.DevApp.DevFrm.QC; using Gs.DevApp.DevFrm.Work; +using Gs.DevApp.Properties; +using Gs.DevApp.ToolBox; using System; -using System.Configuration; using System.Diagnostics; using System.IO; using System.Windows.Forms; @@ -40,8 +42,6 @@ /// </summary> private static void _startLogin() { - //Application.Run(new XtraForm1()); - //return; CefSettings settings = new CefSettings(); settings.Locale = "zh-CN"; Cef.Initialize(settings); @@ -52,16 +52,17 @@ 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") - Application.Run(new Frm_Work09()); + if (IsWeight == true) + Application.Run(new Frm_Work09(QcSeason.浜х嚎绉伴噸.ToString())); else Application.Run(new FrmMain()); } -- Gitblit v1.9.3