From 5cd12e73a667fcf0d831b13c4734911743771147 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 02 一月 2020 11:03:06 +0800 Subject: [PATCH] 2020-01-02-01 --- ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs index 3ad9a3d..1ec4312 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs @@ -103,11 +103,15 @@ btnsave.MouseUpEventHandler += (sender, e) => { Common.Logic.CurrentLogic.LogicCustomPushText = textBox.Text.Trim(); - if (Common.Logic.CurrentLogic.LogicId != 0) + if (string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) { - ///鍙敼鎺ㄩ�佸唴瀹癸紱 - Send.LogicControlSwitch(Common.Logic.CurrentLogic); + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.tiptextnull), + Language.StringByID(MyInternationalizationString.confrim)); + alert.Show(); + return; } + Send.Zj(true, Common.Logic.CurrentLogic); RemoveFromParent(); }; -- Gitblit v1.8.0