From 7b903bb86375e9df24a725288d1c876b8d2b0e61 Mon Sep 17 00:00:00 2001
From: chr <chr@mailcom>
Date: 星期一, 03 三月 2025 19:47:49 +0800
Subject: [PATCH] 整合TestResult;
---
HMI.Core/Setting/SystemSetting.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/HMI.Core/Setting/SystemSetting.cs b/HMI.Core/Setting/SystemSetting.cs
index 774d75b..b2fe7be 100644
--- a/HMI.Core/Setting/SystemSetting.cs
+++ b/HMI.Core/Setting/SystemSetting.cs
@@ -8,6 +8,9 @@
public class SystemSetting
{
public static SystemSetting Instance { get; private set; }
+ /// <summary>
+ /// 绯荤粺璁剧疆鏀瑰彉浜嬩欢
+ /// </summary>
public static event EventHandler<SystemSetting> SystemSettingChanged;
static SystemSetting()
@@ -22,6 +25,8 @@
public string LogoPath { get; private set; }
public string WindowTitle { get; private set; }
+ public string PlcIp { get; private set; }
+ public bool PlcEnabled { get; private set; }
private static void LoadFromXml()
{
@@ -74,5 +79,19 @@
get => windowTitle;
set { Set(ref windowTitle, value); }
}
+
+ private string plcIp;
+ public string PlcIp
+ {
+ get => plcIp;
+ set { Set(ref plcIp, value); }
+ }
+
+ private bool plcEnabled;
+ public bool PlcEnabled
+ {
+ get => plcEnabled;
+ set { Set(ref plcEnabled, value); }
+ }
}
}
--
Gitblit v1.9.1