From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 28 二月 2020 15:25:13 +0800
Subject: [PATCH] 2020.2.28

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
index ef62d30..c57bf0f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs
@@ -81,7 +81,6 @@
             var btnAddFrameLayout = new FrameLayout
             {
                 X = Application.GetRealWidth(830),
-                Width = Application.GetRealWidth(200),
             };
             this.titleFrameLayout.AddChidren(btnAddFrameLayout);
 
@@ -91,7 +90,8 @@
                 X = Application.GetRealWidth(15),
                 Text = Language.StringByID(R.MyInternationalizationString.FirstFloor),
                 TextColor = Shared.Common.ZigbeeColor.Current.XMBlack,
-                TextSize = 15,
+                TextSize = 14,
+                IsBold = true,
                 TextAlignment = TextAlignment.CenterRight,
             };
             btnAddFrameLayout.AddChidren(btnFloorText);
@@ -115,6 +115,14 @@
             {
                 SideslipFramelayout();
             };
+            if (Common.Config.Instance.Home.FloorDics.Count == 0)
+            {
+                btnAddFrameLayout.Width = 0;
+            }
+            else
+            {
+                btnAddFrameLayout.Width = Application.GetRealWidth(200);
+            }
             MidFrameLayoutContent(btnFloorText);
         }
 
@@ -162,6 +170,7 @@
                 BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                 TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                 TextSize = 16,
+                IsBold = true,
             };
             bottomFrameLayout.AddChidren(btnChooseKeyMode);
             #endregion
@@ -532,6 +541,7 @@
             int curIndex = 0;
             foreach (var device in curTypeDeviceList)
             {
+                curIndex++;
                 if (device.CommonDevice != null && device.CommonDevice.IsOnline == 0)
                 {
                     continue;
@@ -558,11 +568,12 @@
 
                 var btnBindName = new Button()
                 {
-                    Width = Application.GetRealWidth(500 - 120),
+                    Width = Application.GetRealWidth(790),
                     X = devicePic.Right + Application.GetRealWidth(20),
                     TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                     TextAlignment = TextAlignment.CenterLeft,
                     Tag = device.CommonDevice?.DeviceEpointName,
+                    TextSize = 15,
                 };
                 rowLayout.AddChidren(btnBindName);
 
@@ -589,7 +600,7 @@
                 };
                 rowLayout.AddChidren(line2);
 
-                if (curIndex == curRoom.DeviceUIList.Count - 1)
+                if (curIndex == curTypeDeviceList.Count)
                 {
                     line2.Visible = false;
                 }
@@ -634,7 +645,7 @@
                 btnBindName.MouseUpEventHandler += hander;
                 btnChoose.MouseUpEventHandler += hander;
 
-                if (device.CommonDevice?.DeviceEpointName == "")
+                if (string.IsNullOrEmpty(device.CommonDevice?.DeviceEpointName))
                 {
                     btnBindName.Text = device.CommonDevice?.DeviceAddr + "_" + device.CommonDevice?.DeviceEpoint;
                 }
@@ -651,8 +662,6 @@
                         btnChoose.Visible = true;
                     }
                 }
-
-                curIndex++;
             }
             if (targetList.Count == 0)
             {
@@ -697,10 +706,11 @@
                 Height = Application.GetRealHeight(58),
                 X = Application.GetRealWidth(81),
                 Y = Application.GetRealHeight(81),
-                TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
+                TextColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                 TextSize = 14,
                 TextAlignment = TextAlignment.CenterLeft,
                 TextID = R.MyInternationalizationString.SelectFloor,
+                IsBold = true,
             };
             sidelipFrameLayout.AddChidren(btnSelectFloor);
 
@@ -749,6 +759,7 @@
                 if (currentKey.currentSelectFloorId == floorId)
                 {
                     btnAllMethod.IsSelected = true;
+                    btnAllMethod.IsBold = true;
                     btnMethodText.TextColor = Shared.Common.ZigbeeColor.Current.XMBlack;
                 }
 
@@ -777,6 +788,7 @@
                         oldbuttonText = btnMethodText;
                         btnMethodText.IsSelected = true;
                         oldbuttonText.TextColor = Shared.Common.ZigbeeColor.Current.XMBlack;
+                        oldbuttonText.IsBold = true;
                     }
 
                     //鑾峰彇妤煎眰瀵瑰簲鐨勬埧闂�

--
Gitblit v1.8.0