alielie
2025-04-10 6bcafc823e836ecd5790f87178a906333699f868
HMI.Core/Setting/SystemSetting.cs
@@ -25,11 +25,12 @@
        }
        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";
        public int LogExpiredDays { get; private set; } = 7;
        private static void LoadFromXml()
        {
@@ -45,6 +46,11 @@
                BeanUtil.Copy(model, setting);
                Instance = setting;
            }
        }
        public static SystemSettingModel GetModel()
        {
            return XmlHelper.DeserializeFromXml<SystemSettingModel>(FilePath);
        }
        public static void ReLoad()
@@ -101,5 +107,12 @@
            get => currentLanguage;
            set { Set(ref currentLanguage, value); }
        }
        private int logExpiredDays;
        public int LogExpiredDays
        {
            get => logExpiredDays;
            set { Set(ref logExpiredDays, value); }
        }
    }
}