From a061384ba628a09bf4df91f50321ab22c03129aa Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期二, 18 三月 2025 20:58:36 +0800
Subject: [PATCH] Winform支持遮罩层;
---
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