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/DoorLock/AddUnLockMethodTip.cs | 50 ++++++++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 24 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs index 910f6da..d9adbb7 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/AddUnLockMethodTip.cs @@ -48,11 +48,6 @@ EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => { - if (doorLock.Gateway != null || doorLock.Gateway.GwResDataAction != null) - { - doorLock.Gateway.GwResDataAction -= action; - } - this.RemoveFromParent(); }; this.btnBack.MouseUpEventHandler += eHandlerBack; @@ -60,6 +55,19 @@ this.MidFrameLayout(this); MidFrameLayoutContent(); + } + + /// <summary> + /// 閲嶅啓绉婚櫎鏂规硶 + /// </summary> + public override void RemoveFromParent() + { + ZbGateway.StatusList.Remove(this); + if (doorLock.Gateway != null || doorLock.Gateway.GwResDataAction != null) + { + doorLock.Gateway.GwResDataAction -= action; + } + base.RemoveFromParent(); } public void MidFrameLayoutContent() @@ -77,9 +85,9 @@ { X = Application.GetRealWidth(446), Y = Application.GetRealHeight(330), - Height = Application.GetRealHeight(81 / 2), + Height = Application.GetRealHeight(76 / 2), Width = Application.GetRealWidth(407), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, + TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, TextSize = 10, TextAlignment = TextAlignment.CenterLeft, }; @@ -89,9 +97,9 @@ { X = Application.GetRealWidth(446), Y = btnPicTip1.Bottom, - Height = Application.GetRealHeight(81 / 2), + Height = Application.GetRealHeight(76 / 2), Width = Application.GetRealWidth(207), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, + TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, TextSize = 10, TextAlignment = TextAlignment.CenterLeft, }; @@ -101,9 +109,9 @@ { X = Application.GetRealWidth(294), Y = Application.GetRealHeight(1089), - Height = Application.GetRealHeight(173 / 2), + Height = Application.GetRealHeight(100 / 2), Width = Application.GetRealWidth(488), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, + TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, Gravity = Gravity.CenterHorizontal, TextSize = 14, }; @@ -112,10 +120,10 @@ var btnPicTip4 = new Button { X = Application.GetRealWidth(397), - Y = btnPicTip3.Bottom, + Y = btnPicTip3.Y + Application.GetRealHeight(50), Width = Application.GetRealWidth(288), - Height = Application.GetRealHeight(173 / 2), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, + Height = Application.GetRealHeight(100 / 2), + TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, Gravity = Gravity.CenterHorizontal, TextSize = 14, }; @@ -127,7 +135,7 @@ Y = Application.GetRealHeight(1388), Height = Application.GetRealHeight(49), Width = Application.GetRealWidth(685), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, + TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, Gravity = Gravity.CenterHorizontal, TextSize = 12, }; @@ -142,8 +150,9 @@ Text = Language.StringByID(R.MyInternationalizationString.NextStepXm), TextColor = Shared.Common.ZigbeeColor.Current.XMWhite, Gravity = Gravity.CenterHorizontal, - Radius = 10, - TextSize = 20, + Radius = (uint)Application.GetRealHeight(127 / 2), + TextSize = 16, + IsBold =true, Enable = false, BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect, }; @@ -248,13 +257,6 @@ nextBtn.Enable = true; nextBtn.BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack; }); - } - else - { - //Application.RunOnMainThread(() => - //{ - //new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.EntryCurrentUnlockMethod), Direction = AMPopTipDirection.Up, CloseTime = 1 }.Show(this.btnTip); - //}); } } } -- Gitblit v1.8.0