diff --git a/BPASmartClient.Device/BaseDevice.cs b/BPASmartClient.Device/BaseDevice.cs index 51f1b77f..5e3b2be4 100644 --- a/BPASmartClient.Device/BaseDevice.cs +++ b/BPASmartClient.Device/BaseDevice.cs @@ -181,7 +181,11 @@ namespace BPASmartClient.Device }); alarmHelper.RemoveAction = new Action((s) => { - //Error; + var res = Error.FirstOrDefault(p => p.GetType().GetProperty("Text").GetValue(p).ToString() == s); + if (res != null && Error.Contains(res)) + { + Error.Remove(res); + } }); ThreadManage.GetInstance().StartLong(new Action(() => { @@ -194,6 +198,8 @@ namespace BPASmartClient.Device }); } + + /// /// 报警监控 ///