From c401a2f2fd1a509cdeb33e850bb5c2827074af48 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 17 三月 2025 08:44:51 +0800
Subject: [PATCH] 完善框架,新增两个close方法;
---
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