From 918e13579f5732d72acd4e29cd8ca8528606bbca Mon Sep 17 00:00:00 2001 From: wenjy Date: Wed, 9 Aug 2023 11:20:54 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=8A=A5=E8=AD=A6=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinishBatch/SCADAHelper/AlarmRefreshAction.cs | 6 +++--- .../FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs | 6 +++--- .../Test/TestTrigerAlarmAction.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs index 41ce2f6..c49fd40 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshAction.cs @@ -49,9 +49,9 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SCADAHelper Mesnac.Basic.InvokeHelper.OnAlarmRefresh += Process_Event; //报警刷新保存事件绑定 - SaveHelper.AlarmSaveHelper.sender = runtime; - SaveHelper.AlarmSaveHelper.OnAlarmSave -= Process_Event; - SaveHelper.AlarmSaveHelper.OnAlarmSave += Process_Event; + SaveHelper.AlarmSaveHelper.Instance.sender = runtime; + SaveHelper.AlarmSaveHelper.Instance.OnAlarmSave -= Process_Event; + SaveHelper.AlarmSaveHelper.Instance.OnAlarmSave += Process_Event; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs index 8eb8de1..5b2f032 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/FinishBatch/SCADAHelper/AlarmRefreshActionForExtend.cs @@ -49,9 +49,9 @@ namespace Mesnac.Action.ChemicalWeighing.FinishBatch.SCADAHelper Mesnac.Basic.InvokeHelper.OnAlarmRefreshExtend += Process_Event; //报警刷新保存事件绑定 - SaveHelper.AlarmSaveHelper.senderExtend = runtime; - SaveHelper.AlarmSaveHelper.OnAlarmSaveExtend -= Process_Event; - SaveHelper.AlarmSaveHelper.OnAlarmSaveExtend += Process_Event; + SaveHelper.AlarmSaveHelper.Instance.senderExtend = runtime; + SaveHelper.AlarmSaveHelper.Instance.OnAlarmSaveExtend -= Process_Event; + SaveHelper.AlarmSaveHelper.Instance.OnAlarmSaveExtend += Process_Event; } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs index 9d4fa81..4b84de9 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Test/TestTrigerAlarmAction.cs @@ -14,7 +14,7 @@ namespace Mesnac.Action.ChemicalWeighing.Test public void Run(RuntimeParameter runtime) { base.RunIni(runtime); - FinishBatch.SaveHelper.AlarmSaveHelper.Save(); + FinishBatch.SaveHelper.AlarmSaveHelper.Instance.Save(); } } }