From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
index 706ace8..fbcce00 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
@@ -132,8 +132,8 @@
             ///娣诲姞鑷姩鍖栧浘鏍囩殑鎺т欢
             var addIconBtn = new Button
             {
-                Width = Application.GetMinRealAverage(69),
-                Height = Application.GetMinRealAverage(69),
+                Width = Application.GetRealWidth(69),
+                Height = Application.GetRealWidth(69),
                 X = Application.GetRealWidth(890),
                 Y = Application.GetRealHeight(60),
                 UnSelectedImagePath = "ZigeeLogic/add.png",
@@ -254,8 +254,8 @@
             {
                 X = Application.GetRealWidth(395),
                 Y = Application.GetRealHeight(92),
-                Width = Application.GetMinRealAverage(294),
-                Height = Application.GetMinRealAverage(294),
+                Width = Application.GetRealWidth(294),
+                Height = Application.GetRealWidth(294),
             };
             fLayout.AddChidren(modeIconBtn);
             if (Send.CurrentDoorLock.IsDoorLockNormallyMode)
@@ -406,8 +406,8 @@
                 ///涓嬩竴绾ц彍鍗曞浘鏍囨帶浠�
                 var nextIconBtn = new Button
                 {
-                    Width = Application.GetMinRealAverage(104),
-                    Height = Application.GetMinRealAverage(104),
+                    Width = Application.GetRealWidth(104),
+                    Height = Application.GetRealWidth(104),
                     X = Application.GetRealWidth(861),
                     Y = Application.GetRealHeight(17),
                     UnSelectedImagePath = "ZigeeLogic/nextIconSone.png",
@@ -607,8 +607,8 @@
                 ///鏄剧ず鐩爣鍔熻兘鑳屾櫙棰滆壊鐨勬帶浠�
                 var typeBjBtn = new FrameLayout
                 {
-                    Width = Application.GetMinRealAverage(82),
-                    Height = Application.GetMinRealAverage(82),
+                    Width = Application.GetRealWidth(82),
+                    Height = Application.GetRealWidth(82),
                     X = Application.GetRealWidth(17),
                     Y = Application.GetRealHeight(84),
                     Radius = (uint)Application.GetMinRealAverage(41),
@@ -618,16 +618,16 @@
                 ///鏄剧ず鐩爣鍔熻兘鍥炬爣鐨勬帶浠�
                 var typeIconBtn = new Button
                 {
-                    Width = Application.GetMinRealAverage(58),
-                    Height = Application.GetMinRealAverage(58),
+                    Width = Application.GetRealWidth(58),
+                    Height = Application.GetRealWidth(58),
                     Gravity = Gravity.Center,
                 };
                 typeBjBtn.AddChidren(typeIconBtn);
                 ///閫昏緫寮�鍏冲浘鏍囩殑鎺т欢
                 var switchBtn = new Button
                 {
-                    Width = Application.GetMinRealAverage(104),
-                    Height = Application.GetMinRealAverage(63),
+                    Width = Application.GetRealWidth(104),
+                    Height = Application.GetRealWidth(63),
                     UnSelectedImagePath = "ZigeeLogic/logicclose.png",
                     SelectedImagePath = "ZigeeLogic/logicopen.png",
                     X = Application.GetRealWidth(815),

--
Gitblit v1.8.0