From 098af52f868109008175e08a8aac2af6ece8177a Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 14 May 2022 11:42:32 +0800 Subject: [PATCH] 3 --- BPASmartClient.Device/BaseDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BPASmartClient.Device/BaseDevice.cs b/BPASmartClient.Device/BaseDevice.cs index 0ab65f37..fcecf9cd 100644 --- a/BPASmartClient.Device/BaseDevice.cs +++ b/BPASmartClient.Device/BaseDevice.cs @@ -110,7 +110,7 @@ namespace BPASmartClient.Device /// public void DeviceProcessLogShow(string info) { - Log.Add(new { Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), Type = "流程", Text = info }); + Log.Insert(0,new { Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), Type = "流程", Text = info }); MessageLog.GetInstance.DeviceProcessLogShow(DeviceId.ToString(), info); } @@ -233,7 +233,7 @@ namespace BPASmartClient.Device Type = res.Grade, Text = res.Info }; - Error.Add(obj); + Error.Insert(0,obj); AddErrorAction?.Invoke(DeviceId, obj); } });