alielie
2025-03-03 4c3eb7f334abb8129b57e86f2935d75d0b3070b4
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); }
        }
    }
}