From fa6bcb2e9907772480f99205f36ec2a1ce735a22 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 09 一月 2020 14:11:07 +0800
Subject: [PATCH] 合并代码

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs
index 1d6b571..3ea1cc6 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindTargetsPage.cs
@@ -97,7 +97,7 @@
                             {
                                 currentClusterID = 258;
                             }
-                            currentKey.ReSave();
+
                             //璇诲彇鎸夐敭褰撳墠缁戝畾鐩爣
                             GetDeviceBindResponseAllData getBindList = null;
                             if (IsRead)
@@ -169,6 +169,7 @@
                                     currentKey.currentKeySelectModeText = Language.StringByID(R.MyInternationalizationString.AddCurtain);
                                 }
                             }
+                            currentKey.ReSave();
                         }
                         #endregion 
                         Application.RunOnMainThread(() =>
@@ -208,13 +209,14 @@
 
             var btnAddFrameLayout = new FrameLayout()
             {
-                X = Application.GetRealWidth(913),
+                X = Application.GetRealWidth(888),
                 Width = Application.GetRealWidth(192),
             };
             this.titleFrameLayout.AddChidren(btnAddFrameLayout);
 
             var btnBindAdd = new Button
             {
+                X = Application.GetRealWidth(62),
                 Height = Application.GetRealHeight(72),
                 Width = Application.GetRealWidth(72),
                 UnSelectedImagePath = "BindPic/BindAdd.png",
@@ -485,7 +487,7 @@
                                     devicePic.Width = Application.GetRealWidth(110);
                                     devicePic.Text = "";
                                 }
-                                if (tempDev.DeviceEpointName == "")
+                                if (string.IsNullOrEmpty(tempDev.DeviceEpointName))
                                 {
                                     btnBindNameText = tempDev.DeviceEpoint + Language.StringByID(R.MyInternationalizationString.uDeviceCircuit);
                                 }
@@ -529,7 +531,7 @@
             modeRowLayout.BackgroundColor = ZigbeeColor.Current.XMWhite;
             midVerticalRefreshLayout.AddChidrenRow(modeRowLayout);
             modeRowLayout.frameTable.UseClickStatu = false;
-            modeRowLayout.frameTable.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.keyMode), 500);
+            modeRowLayout.frameTable.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.keyMode), 400);
             var btnKeyModeTipText = "";
             #region 褰撳墠妯″紡鏂囨湰鏄剧ず
             switch (currentKey.panelMode)
@@ -575,7 +577,7 @@
                     break;
             }
             #endregion
-            modeRowLayout.frameTable.AddMostRightView(btnKeyModeTipText, 500);
+            modeRowLayout.frameTable.AddMostRightView(btnKeyModeTipText, 800);
             modeRowLayout.frameTable.AddBottomLine();
             var btnDel = modeRowLayout.AddDeleteControl();
             //涓�閿竻闄ゆ寜閿簨浠�

--
Gitblit v1.8.0