From 40014e6e41f1ec017a07b7a620b3c700807d0519 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期日, 23 三月 2025 13:51:00 +0800
Subject: [PATCH] 新增DOControl

---
 HMI.Core/Setting/SystemSetting.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/HMI.Core/Setting/SystemSetting.cs b/HMI.Core/Setting/SystemSetting.cs
index 5378e82..da6a63b 100644
--- a/HMI.Core/Setting/SystemSetting.cs
+++ b/HMI.Core/Setting/SystemSetting.cs
@@ -25,11 +25,11 @@
 
         }
 
-        public string LogoPath { get; private set; }
-        public string WindowTitle { get; private set; }
+        public string LogoPath { get; private set; } = ".\\JingCeLogo.png";
+        public string WindowTitle { get; private set; } = "浜у搧娴嬭瘯骞冲彴";
         public string PlcIp { get; private set; }
         public bool PlcEnabled { get; private set; }
-        public string CurrentLanguage { get; private set; }
+        public string CurrentLanguage { get; private set; } = "zh-CN";
 
         private static void LoadFromXml()
         {
@@ -47,6 +47,11 @@
             }
         }
 
+        public static SystemSettingModel GetModel()
+        {
+            return XmlHelper.DeserializeFromXml<SystemSettingModel>(FilePath);
+        }
+
         public static void ReLoad()
         {
             if (!File.Exists(FilePath))

--
Gitblit v1.9.1