From 5986f63b75bd81c6cef262c670e9251c038cbf5d Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 17 十二月 2019 17:21:07 +0800
Subject: [PATCH] 合并一个版本

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs |   38 +++++++++++++++++---------------------
 1 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
index a25457b..0d18c15 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
@@ -37,6 +37,7 @@
         /// </summary>
         private CommonDevice deviceObj = null;
         Action action;
+        Action actionNone;
         string modifyDeviceName = "";
         bool IsModifyName = true;
         public Action<string> devicNameAction;
@@ -162,10 +163,9 @@
                 if (i == 0)
                 {
                     bottomRowLayout.Y = Application.GetRealHeight(220);
-                    btnName.Text = Language.StringByID(R.MyInternationalizationString.DeviceRemarkXm);
-                    btnNextFrameLayout.Width = btnNext.Width = Application.GetRealWidth(789 - 58);
-                    btnNextFrameLayout.X = Application.GetRealWidth(233);
-                    btnNext.Text = doorLock.DeviceName;
+                    btnName.Text = Language.StringByID(R.MyInternationalizationString.DeviceRemarkXm) + ":";
+                    btnNextFrameLayout.Width = btnNext.Width = Application.GetRealWidth(789 - 58 - 20);
+                    btnNextFrameLayout.X = Application.GetRealWidth(233 + 20);
                     var btnDeviceNameEditText = new EditText()
                     {
                         X = Application.GetRealWidth(46),
@@ -238,9 +238,8 @@
                 {
                     bottomRowLayout.Y = Application.GetRealHeight(481);
                     btnName.Text = Language.StringByID(R.MyInternationalizationString.BelongModel) + ":";
-                    btnNextFrameLayout.Width = btnNext.Width = Application.GetRealWidth(789 - 58);
-                    btnNextFrameLayout.X = Application.GetRealWidth(233);
-
+                    btnNextFrameLayout.Width = btnNext.Width = Application.GetRealWidth(789 - 58 - 20);
+                    btnNextFrameLayout.X = Application.GetRealWidth(253);
                     btnNext.TextAlignment = TextAlignment.CenterLeft;
                     btnNext.Height = Application.GetRealHeight(58);
                     btnNext.Text = doorLock.DeviceName;
@@ -285,7 +284,7 @@
                     btnName.Text = Language.StringByID(R.MyInternationalizationString.DoorLockTime);
                     btnNextFrameLayout.Y = btnName.Y;
                     btnNext.UnSelectedImagePath = "DoorLock/RightIcon.png";
-                    btnLine.Visible = false;
+                    btnLine.Visible = true;
                     btnLine.Y = Application.GetRealHeight(992);
                 }
                 int currentIndex = i;
@@ -293,21 +292,18 @@
                  {
                      if (currentIndex == 3)
                      {
-                         if (!UserCenterResourse.Option.DoorUnLockByRemote)
+                         action = async () =>
                          {
-                             SecurityRequest(doorLock, action);
-                         }
-                         else
+                             var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
+                             Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
+                             Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
+                             temporaryPassword.Show();
+                         };
+                         actionNone = async () =>
                          {
-                             action = async () =>
-                             {
-                                 var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
-                                 Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
-                                 Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
-                                 temporaryPassword.Show();
-                             };
-                             HdlCheckLogic.Current.CheckSecondarySecurity(action);
-                         }
+                             Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action);
+                         };
+                         HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone);
                      }
                      else if (currentIndex == 4)
                      {

--
Gitblit v1.8.0