From 0ac35700e0e47519c7d24d530226a84636c35e28 Mon Sep 17 00:00:00 2001 From: taoye Date: Wed, 7 Sep 2022 14:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs | 1 + .../Pages/ViewModel/AlarmViewModel.cs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs index 9d8a3f76..c12cec98 100644 --- a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs +++ b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs @@ -27,6 +27,7 @@ namespace BPASmartClient.CustomResource.Pages.Model public static void Init() { + ThreadManage.GetInstance().StartLong(new Action(() => { foreach (var item in Alarm.GetType().GetProperties()) diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs index 262d27e5..d345b933 100644 --- a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs +++ b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs @@ -63,9 +63,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel return; } }); - - //AlarmInfos = MessageLog.GetInstance.alarmLogs; - AlarmInfos = AlarmHelper.Alarms; + //AlarmInfos = AlarmHelper.Alarms; } private void GetHistoryAlarm()