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/UserCenter/DoorLock/DoorlockDialog.cs |  106 ++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 92 insertions(+), 14 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorlockDialog.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorlockDialog.cs
index 696a6b1..66b0c5a 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorlockDialog.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorlockDialog.cs
@@ -5,25 +5,40 @@
 {
     public class DoorlockDialog : FrameLayout
     {
+        /// <summary>
+        /// 闂ㄩ攣寮圭獥
+        /// </summary>
+        /// <param name="dialog"></param>
+        /// <param name="title"></param>
         public DoorlockDialog(Dialog dialog, string title)
         {
             this.dialog = dialog;
             this.title = title;
         }
+        /// <summary>
+        /// 寮圭獥鏍囬
+        /// </summary>
         public string title = string.Empty;
         public Dialog dialog;
+
+        /// <summary>
+        /// 寮圭獥鏍囬鏍忎笅鐨勭嚎鏉�
+        /// </summary>
+        public Button dialogLine = new Button
+        {
+            Height = 1,
+            Y = Application.GetRealHeight(380),
+            BackgroundColor = Shared.Common.ZigbeeColor.Current.XMRowLine,
+        };
 
         /// <summary>
         /// 寮圭獥鍙栨秷鎸夐敭
         /// </summary>
         public Button dialogBtnCancel = new Button
         {
-            Width = Application.GetRealWidth(397),
-            Height = Application.GetRealHeight(127),
-            Y = Application.GetRealHeight(380),
             TextID = R.MyInternationalizationString.Cancel,
             TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
-            BackgroundColor = Shared.Common.ZigbeeColor.Current.XMMidFrameLayout,
+            TextSize = 14,
         };
 
         /// <summary>
@@ -31,13 +46,9 @@
         /// </summary>
         public Button dialogBtnConfirm = new Button
         {
-            Width = Application.GetRealWidth(398),
-            Height = Application.GetRealHeight(128),
-            X = Application.GetRealWidth(397),
-            Y = Application.GetRealHeight(380),
             TextID = R.MyInternationalizationString.confrim,
             TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
-            BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
+            TextSize = 14,
         };
 
         /// <summary>
@@ -45,7 +56,6 @@
         /// </summary>
         public FrameLayout dialogMidFraFrameLayout = new FrameLayout
         {
-            Width = Application.GetRealWidth(415),
             Height = Application.GetRealHeight(58),
             X = Application.GetRealWidth(190),
             Y = Application.GetRealHeight(202),
@@ -57,16 +67,21 @@
         public Button dialogMidText = new Button
         {
             TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
+            TextSize = 14,
+            TextAlignment = TextAlignment.Center,
         };
 
         /// <summary>
-        /// 闃村奖閮ㄥ垎
+        /// 寮圭獥闃村奖鑳屾櫙
         /// </summary>
         public FrameLayout flMain = new FrameLayout
         {
             BackgroundColor = 0x00000000,
         };
 
+        /// <summary>
+        /// 寮圭獥鏄剧ず
+        /// </summary>
         public void Show()
         {
             dialog.Show();
@@ -83,6 +98,7 @@
                 Y = Application.GetRealHeight(691 - 184),
                 X = Application.GetRealWidth(144),
                 BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite,
+                Radius = (uint)Application.GetRealHeight(17),
             };
             flMain.AddChidren(dialogFrameLayout);
 
@@ -94,12 +110,74 @@
                 Y = Application.GetRealHeight(69),
                 Text = title,
                 TextColor = Shared.Common.ZigbeeColor.Current.XMBlack,
+                TextSize = 16,
             };
-            dialogFrameLayout.AddChidren(dialogTitle);
+            #region 搴曢儴鍦嗚UI 
+            var rFrameLayout0 = new FrameLayout
+            {
+                Width = Application.GetRealWidth(397),
+                Height = Application.GetRealHeight(50),
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMMidFrameLayout,
+            };
 
+            var rFrameLayout1 = new FrameLayout
+            {
+                Width = Application.GetRealWidth(398),
+                Height = Application.GetRealHeight(50),
+                X = Application.GetRealWidth(397),
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
+            };
+
+            var rFrameLayout2 = new FrameLayout
+            {
+                Width = Application.GetRealWidth(50),
+                Height = Application.GetRealHeight(128) - 1,
+                X = Application.GetRealWidth(397 - 50),
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMMidFrameLayout,
+            };
+
+            var rFrameLayout3 = new FrameLayout
+            {
+                Width = Application.GetRealWidth(50),
+                Height = Application.GetRealHeight(128) - 1,
+                X = Application.GetRealWidth(397),
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
+            };
+
+            var r1FrameLayout = new FrameLayout
+            {
+                Width = Application.GetRealWidth(397),
+                Height = Application.GetRealHeight(128) - 1,
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMMidFrameLayout,
+                Radius = (uint)Application.GetRealHeight(17),
+            };
+
+            var r2FrameLayout = new FrameLayout
+            {
+                Width = Application.GetRealWidth(398),
+                Height = Application.GetRealHeight(128) - 1,
+                X = Application.GetRealWidth(397),
+                Y = Application.GetRealHeight(380) + 1,
+                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
+                Radius = (uint)Application.GetRealHeight(17),
+            };
+            dialogFrameLayout.AddChidren(rFrameLayout0);
+            dialogFrameLayout.AddChidren(rFrameLayout1);
+            dialogFrameLayout.AddChidren(rFrameLayout2);
+            dialogFrameLayout.AddChidren(rFrameLayout3);
+            dialogFrameLayout.AddChidren(r1FrameLayout);
+            dialogFrameLayout.AddChidren(r2FrameLayout);
+            #endregion 
+            dialogFrameLayout.AddChidren(dialogTitle);
             dialogFrameLayout.AddChidren(dialogMidFraFrameLayout);
-            dialogFrameLayout.AddChidren(dialogBtnConfirm);
-            dialogFrameLayout.AddChidren(dialogBtnCancel);
+            dialogFrameLayout.AddChidren(dialogLine);
+            r2FrameLayout.AddChidren(dialogBtnConfirm);
+            r1FrameLayout.AddChidren(dialogBtnCancel);
         }
     }
 }

--
Gitblit v1.8.0