From 4b378188ce972df432b23d9cb73babb6cc0679c6 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 17 一月 2020 14:56:15 +0800 Subject: [PATCH] 合并代码 ver.10086 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/EntryStatusPage.cs | 160 +++++++--------------------------------------------- 1 files changed, 23 insertions(+), 137 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/EntryStatusPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/EntryStatusPage.cs index e502f98..0217b3a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/EntryStatusPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/EntryStatusPage.cs @@ -10,9 +10,12 @@ { public class EntryStatusPage : DoorLockCommonLayout, ZigBee.Common.IStatus { + /// <summary> /// 鏋勯�犲嚱鏁� /// </summary> /// <param name="doorLock"></param> + /// <param name="accountObj"></param> + /// <param name="entryType"></param> public EntryStatusPage(ZigBee.Device.DoorLock doorLock, Shared.Phone.UserCenter.MemberInfoRes accountObj, string entryType) { this.doorLock = doorLock; @@ -21,10 +24,22 @@ BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; } - #region 鈼� 鍙橀噺鐢虫槑__________________________ + #region 鍙橀噺鐢虫槑 + /// <summary> + /// 褰撳墠闂ㄩ攣 + /// </summary> ZigBee.Device.DoorLock doorLock; + /// <summary> + /// 褰撳墠璐︽埛 + /// </summary> Shared.Phone.UserCenter.MemberInfoRes curAccountObj; + /// <summary> + /// 褰撳墠绫诲瀷 + /// </summary> string currentType = string.Empty; + /// <summary> + /// 搴曢儴甯冨眬 + /// </summary> FrameLayout bottomFrameLayout; #endregion @@ -45,7 +60,9 @@ MidFrameLayoutContent(); } - + /// <summary> + /// 涓儴甯冨眬 + /// </summary> public void MidFrameLayoutContent() { var entryStatusPic = new Button @@ -85,7 +102,9 @@ BottomFrameLayoutContent(); } - + /// <summary> + /// 搴曢儴甯冨眬 + /// </summary> public void BottomFrameLayoutContent() { bottomFrameLayout = new FrameLayout() @@ -325,140 +344,7 @@ }; } - public void MatchUsersFrameLayout() - { - var flMain = new FrameLayout { BackgroundColor = 0x0f000000 }; - this.midFrameLayout.AddChidren(flMain); - flMain.MouseUpEventHandler += (sender11, e11) => - { - flMain.RemoveFromParent(); - bottomFrameLayout.RemoveAll(); - BottomFrameLayoutContent(); - }; - bottomFrameLayout = new FrameLayout() - { - Height = Application.GetRealHeight(100), - Y = Application.GetRealHeight(930), - Radius = 17, - BackgroundColor = ZigbeeColor.Current.XMWhite, - }; - flMain.AddChidren(bottomFrameLayout); - - var bottomFrameLayout1 = new FrameLayout() - { - Height = Application.GetRealHeight(806 - 50), - Y = Application.GetRealHeight(930 + 48), - BackgroundColor = ZigbeeColor.Current.XMWhite, - }; - flMain.AddChidren(bottomFrameLayout1); - - var bottomFrameLayout2 = new FrameLayout() - { - Height = Application.GetRealHeight(806), - Y = Application.GetRealHeight(930), - }; - flMain.AddChidren(bottomFrameLayout2); - - var matchUsersFrameLayout = new FrameLayout() - { - Height = Application.GetRealHeight(138), - }; - bottomFrameLayout2.AddChidren(matchUsersFrameLayout); - - var btnCancel = new Button - { - X = Application.GetRealWidth(81), - Y = Application.GetRealHeight(40), - Height = Application.GetRealHeight(58), - Width = Application.GetRealWidth(101), - Text = Language.StringByID(R.MyInternationalizationString.Cancel), - TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, - TextSize = 14, - }; - matchUsersFrameLayout.AddChidren(btnCancel); - - var btnMatchUser = new Button - { - X = Application.GetRealWidth(446), - Y = Application.GetRealHeight(35), - Height = Application.GetRealHeight(63), - Width = Application.GetRealWidth(284), - Text = Language.StringByID(R.MyInternationalizationString.MatchPerson), - TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, - TextSize = 16, - }; - matchUsersFrameLayout.AddChidren(btnMatchUser); - - var btnFinish = new Button - { - X = Application.GetRealWidth(919), - Y = Application.GetRealHeight(40), - Height = Application.GetRealHeight(58), - Width = Application.GetRealWidth(101), - Text = Language.StringByID(R.MyInternationalizationString.Complete), - TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, - TextSize = 14, - }; - matchUsersFrameLayout.AddChidren(btnFinish); - - var btnTopLine = new FrameLayout() - { - Height = Application.GetRealHeight(5), - Y = Application.GetRealHeight(138), - BackgroundColor = Shared.Common.ZigbeeColor.Current.XMGray3, - }; - bottomFrameLayout2.AddChidren(btnTopLine); - - var matchUserHorizontalScrolViewLayout = new VerticalScrolViewLayout() - { - Y = Application.GetRealHeight(207), - Height = Application.GetRealHeight(806 - 207), - }; - bottomFrameLayout2.AddChidren(matchUserHorizontalScrolViewLayout); - - for (var i = 0; i < 4; i++) - { - var rowFrameLayout = new FrameLayout() - { - Height = Application.GetRealHeight(127), - }; - matchUserHorizontalScrolViewLayout.AddChidren(rowFrameLayout); - - var btnUserName = new Button() - { - Width = Application.GetRealWidth(743), - Height = Application.GetRealHeight(58), - X = Application.GetRealWidth(81), - Y = Application.GetRealHeight(37), - TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - }; - rowFrameLayout.AddChidren(btnUserName); - - var btnChoose = new Button() - { - Width = Application.GetRealWidth(58), - Height = Application.GetRealHeight(58), - X = Application.GetRealWidth(861 + 81), - Y = Application.GetRealHeight(35), - BackgroundColor = ZigbeeColor.Current.XMOrange, - }; - rowFrameLayout.AddChidren(btnChoose); - - var btnLine = new FrameLayout() - { - Width = Application.GetRealWidth(919), - Height = Application.GetRealHeight(5), - X = Application.GetRealWidth(81), - Y = Application.GetRealHeight(122), - BackgroundColor = Shared.Common.ZigbeeColor.Current.XMGray3, - }; - rowFrameLayout.AddChidren(btnLine); - } - } - - #region 鈼� 鎺ュ彛瀹炵幇__________________________ + #region 鎺ュ彛瀹炵幇 /// <summary> /// 澶勭悊鍙樺寲浜嬩欢 --灏嗗純鐢� 鏀圭敤DeviceInfoChange() /// </summary> -- Gitblit v1.8.0