From 6ba43603ccd8868a4ee73e9b978b7cb20a5b2c52 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 04 十二月 2020 14:24:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/WJC' --- HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs index 94c4318..bb62490 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Set.cs @@ -98,10 +98,18 @@ new LogicView.TipPopView().TipBox(StringId.tip, StringId.delAutomation, () => { - LogicMethod.RemoveAllView(); - Logic.LogicList.Remove(Logic.currlogic); - MainView.MainShow(); - //鍙戦�佸垹闄ら�昏緫鍛戒护锛� + var responsePackNew= Send.delLogic(Logic.currlogic); + if (responsePackNew.Code == "0") + { + LogicMethod.RemoveAllView(); + Logic.LogicList.Remove(Logic.currlogic); + MainView.MainShow(); + //鍙戦�佸垹闄ら�昏緫鍛戒护锛� + } + else + { + new LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.delFail)); + } }); }; -- Gitblit v1.8.0