| | |
| | | public class SystemSetting |
| | | { |
| | | public static SystemSetting Instance { get; private set; } |
| | | /// <summary> |
| | | /// 系统设置改变事件 |
| | | /// </summary> |
| | | public static event EventHandler<SystemSetting> SystemSettingChanged; |
| | | |
| | | static SystemSetting() |
| | |
| | | |
| | | 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() |
| | | { |
| | |
| | | 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); } |
| | | } |
| | | } |
| | | } |