From c7f2e3791f931d18c6ab3b1b215e57a1101e0389 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 27 八月 2020 15:01:27 +0800 Subject: [PATCH] 2020-08-27-1 --- ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs | 41 ++++++++++++++++++----------------------- 1 files changed, 18 insertions(+), 23 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs old mode 100755 new mode 100644 index 2812dda..de0eaa2 --- a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs @@ -129,24 +129,7 @@ /// <param name="user">瑙﹀彂婧愬垪琛�</param> public void SelectedUserID(Send.MembershipIfon user) { - - //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; - VerticalScrolViewLayout vV = null; int count = user.UserIdMode.Count; - if (count > 9) - { - ///鍏冪礌瓒呭嚭9涓�; - count = 6; - //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; - vV = new VerticalScrolViewLayout - { - Y = Application.GetRealHeight(140 + 20), - Height = Application.GetRealHeight(160 * count), - }; - //娓呴櫎涔嬪墠鐨勬帶浠�; - vV.RemoveAll(); - } - #region -------鍙栨秷 瀹屾垚 var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; this.AddChidren(flMain); @@ -161,13 +144,28 @@ flMain.MouseUpEventHandler += clickcancel; completeView.Btncancel.MouseUpEventHandler += clickcancel; #endregion - + //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; + VerticalScrolViewLayout vV = null; + if (count > 9) + { + ///鍏冪礌瓒呭嚭9涓�; + count = 6; + //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; + vV = new VerticalScrolViewLayout + { + Y = Application.GetRealHeight(140 + 20), + Height = Application.GetRealHeight(160 * count), + }; + //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; + completeView.Show(count).AddChidren(vV); + //娓呴櫎涔嬪墠鐨勬帶浠�; + vV.RemoveAll(); + } ///瀹氫袱涓彉閲忚褰曚箣鍓嶇殑鍙�硷紱 string userId = ""; string openMode = ""; string accountName = ""; string SelectedDeviceStatuscondition = ""; - for (int i = 0; i < user.UserIdMode.Count; i++) { var userifon = user.UserIdMode[i]; @@ -175,8 +173,7 @@ mFunView lockView = new mFunView(); if (user.UserIdMode.Count > 9) { - //鍏冪礌瓒呭嚭9涓氨鐢ㄤ笂涓嬫粦鍔ㄦ帶浠�; - completeView.Show(count).AddChidren(vV); + vV.AddChidren(lockView.Show()); } else @@ -245,8 +242,6 @@ } } - - completeView.Btncomplete.MouseUpEventHandler += (sender, e) => { var lockConditionsInfo = new Dictionary<string, string>(); -- Gitblit v1.8.0