From c416268c4bb3ca958d8166542812a7e67517d858 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 18 十二月 2020 15:43:45 +0800 Subject: [PATCH] 2020-12-18-2 --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs index 62f95ea..3c54d9b 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs @@ -184,19 +184,21 @@ ///淇濆瓨鐐瑰嚮浜嬩欢 saveView.btnClick.MouseUpEventHandler += (sender, e) => { - + if (Logic.currlogic.input.Count == 0&& Logic.currlogic.output.Count == 0) + { + new LogicView.TipPopView().TipBox(StringId.tip, StringId.conditioncNullOrtargetNull); + return; + } if (Logic.currlogic.input.Count == 0) { - new LogicView.TipPopView().FlashingBox("鏉′欢涓嶈兘涓虹┖"); + new LogicView.TipPopView().TipBox(StringId.tip, StringId.conditioncNull); return; } if (Logic.currlogic.output.Count == 0) { - new LogicView.TipPopView().FlashingBox("鐩爣涓嶈兘涓虹┖"); + new LogicView.TipPopView().TipBox(StringId.tip, StringId.targetNull); return; } - - Loading loading = new Loading(); this.AddChidren(loading); HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; -- Gitblit v1.8.0