From 26d1cdf2f5246c1ad7890e6740444c4a6a80e6fb Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 11 八月 2020 13:21:10 +0800
Subject: [PATCH] 合并了新代码

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
index 1cc5f84..7b10608 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
@@ -354,7 +354,7 @@
                     }
                 }
 
-                if (index == roomTempList.Count - 1 && index > 3)
+                if (index == roomTempList.Count - 1 && index > 2)
                 {
                     var btnRoomFrameLayoutEmpty = new FrameLayout
                     {
@@ -838,13 +838,14 @@
 
                 EventHandler<MouseEventArgs> hander = (sender, e) =>
                 {
-                    if (curSupportBindEpointList.Count == 0 || curSupportBindEpointList.Count == targetScList.Count)
+                    btnChoose.IsSelected = !btnChoose.IsSelected;
+
+                    if (curSupportBindEpointList.Count == 0)
                     {
                         new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindFull), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
                         return;
                     }
 
-                    btnChoose.IsSelected = !btnChoose.IsSelected;
                     if (!btnChoose.IsSelected)
                     {
                         targetScList.Remove(scene);
@@ -901,6 +902,7 @@
 
                     //鑾峰彇鎴块棿鍒楄〃
                     supportRoomList = BindInfo.GetSupportRoomList();
+
                     //鑾峰彇闈㈡澘宸茬粡缁戝畾鐨勫尮閰嶇被鍨嬬殑鍒楄〃
                     curBindTypeList = MutilfunctionPanelMethod.GetMatchBindList(curBindType);
 

--
Gitblit v1.8.0