HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2021-01-14 d78515ac4ac8cf4a1785d9df18058d6724f12b79
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs
@@ -98,8 +98,8 @@
            #endregion 
            MidTopFrameLayout = new FrameLayout()
            {
                X = Application.GetRealWidth(181),
                Y = Application.GetRealHeight(92),
                X = Application.GetMinRealAverage(181),
                Y = Application.GetMinRealAverage(92),
                Width = Application.GetRealWidth(717),
                Height = Application.GetRealHeight(570),
                BackgroundImagePath = "DoorLock/TempPasswordBackground.png",
@@ -118,7 +118,7 @@
            {
                Height = Application.GetRealHeight(43),
                Width = Application.GetRealWidth(259),
                X = Application.GetRealWidth(230),
                X = Application.GetRealWidth(227),
                Y = Application.GetRealHeight(418),
                UnSelectedImagePath = "DoorLock/TempPasswordBackground1.png",
            };
@@ -168,7 +168,7 @@
            var validTime = new Button()
            {
                Height = Application.GetRealHeight(55),
                Width = Application.GetRealWidth(92 + 115),
                Width = Application.GetRealWidth(207),
                Y = Application.GetRealHeight(386),
                TextColor = Shared.Common.ZigbeeColor.Current.XMGray2,
                TextAlignment = TextAlignment.CenterRight,
@@ -180,7 +180,7 @@
            var validTimeDate = new Button()
            {
                Height = Application.GetRealHeight(49),
                Width = Application.GetRealWidth(84 + 135),
                Width = Application.GetRealWidth(208),
                Y = Application.GetRealHeight(441),
                TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
                TextSize = 12,
@@ -193,7 +193,7 @@
                Height = Application.GetRealHeight(55),
                Width = Application.GetRealWidth(717 - 507),
                X = Application.GetRealWidth(507),
                Y = Application.GetRealHeight(389),
                Y = Application.GetRealHeight(386),
                TextColor = Shared.Common.ZigbeeColor.Current.XMGray2,
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = 16,
@@ -206,7 +206,7 @@
                Height = Application.GetRealHeight(49),
                Width = Application.GetRealWidth(717 - 508),
                X = Application.GetRealWidth(508),
                Y = Application.GetRealHeight(444),
                Y = Application.GetRealHeight(441),
                TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = 12,
@@ -217,20 +217,7 @@
            #region 数据处理
            TimeDisplay(validTime, validTimeDate, inValidTime, inValidTimeDate, false);
            if (Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.IsModify)
            {
                btnFinifh.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack;
                btnFinifh.Enable = true;
                topPic.Visible = true;
                topPic.Enable = true;
            }
            else
            {
                btnFinifh.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect;
                btnFinifh.Enable = false;
                topPic.Visible = false;
                topPic.Enable = false;
            }
            if (string.IsNullOrEmpty(doorLock.LocalTempPassword))
            {
                randomPassword.Text = "- - - - - -";
@@ -258,6 +245,21 @@
                }
            }
            if (Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.IsModify)
            {
                btnFinifh.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack;
                btnFinifh.Enable = true;
                topPic.Visible = true;
                topPic.Enable = true;
            }
            else
            {
                btnFinifh.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect;
                btnFinifh.Enable = false;
                topPic.Visible = false;
                topPic.Enable = false;
            }
            temPasswordVisiable.MouseUpEventHandler += (sender, e) =>
            {
                temPasswordVisiable.IsSelected = !temPasswordVisiable.IsSelected;