From f71e74b5f0d2716fbf05da016cdaa18d64e09f80 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 31 十二月 2020 17:01:18 +0800 Subject: [PATCH] 又换完成最新门锁。空气质量传感器完成数据和基本配置功能。开发图表和自动化的同事可下载此代码 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs | 43 +++++++++++++++++++++++++++++++++---------- 1 files changed, 33 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs old mode 100644 new mode 100755 index edca003..6de5343 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs @@ -139,6 +139,11 @@ //棣栨鍒濆鍖栨暟鎹� CommonPage.Loading.Start(""); InitData(); + + //澶囨敞寮圭獥鎻愮ず + string msg = Language.StringByID(R.MyInternationalizationString.BindRemarkTip1).Replace("{0}", "\r\n"); + var alert = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown)); + alert.Show(); } /// <summary> @@ -235,8 +240,8 @@ btnFinifh = new Button() { - Width = Application.GetRealWidth(907), - Height = Application.GetRealHeight(127), + Width = Application.GetRealWidth(907), + Height = Application.GetRealHeight(127), Y = Application.GetRealHeight(49 + 35), Gravity = Gravity.CenterHorizontal, Radius = (uint)Application.GetRealHeight(127) / 2, @@ -534,13 +539,13 @@ { line2.Visible = false; } - if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == true) - { - btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.TextBlack; - } - else - { - btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.XMGray3; + if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == true) + { + btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.TextBlack; + } + else + { + btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.XMGray3; } switch (curBindType) { @@ -600,6 +605,13 @@ EventHandler<MouseEventArgs> hander = (sender, e) => { + //鐩爣澶囨敞澶勭悊 + var localName = System.Text.Encoding.UTF8.GetBytes(Common.LocalDevice.Current.GetDeviceEpointName(device)); + if (localName.Length > 20) + { + new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); + return; + } btnChoose.IsSelected = !btnChoose.IsSelected; if (curBindType != 6) { @@ -831,6 +843,18 @@ EventHandler<MouseEventArgs> hander = (sender, e) => { + + //鐩爣澶囨敞澶勭悊 + if (!string.IsNullOrEmpty(scene.Name)) + { + var localName = System.Text.Encoding.UTF8.GetBytes(scene.Name); + if (localName.Length > 20) + { + new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); + return; + } + } + btnChoose.IsSelected = !btnChoose.IsSelected; if (curSupportBindEpointList.Count == 0) @@ -1315,7 +1339,6 @@ curD.BindScenesId = dev.BindScenesId; curD.BindMacAddr = dev.BindMacAddr; curD.BindEpoint = dev.BindEpoint; - curD.ESName = dev.ESName; curD.BindType = dev.BindType; bList.Add(curD); -- Gitblit v1.8.0