| | |
| | | } |
| | | Button selectedIcon = new Button(); |
| | | public static bool edit=false; |
| | | |
| | | VerticalScrolViewLayout middle; |
| | | |
| | | public async void Show(CommonDevice common, Dictionary<string, string> editdeviceConditionsInfo=null) |
| | | { |
| | |
| | | }; |
| | | #endregion |
| | | |
| | | var middle = new VerticalScrolViewLayout |
| | | middle = new VerticalScrolViewLayout |
| | | { |
| | | Y = topRowLayout.Bottom, |
| | | Height = Application.GetRealHeight(1920 - 184), |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | CommonPage.Loading.Start(); |
| | | if (!d) |
| | | { |
| | | var allMemberslist = await Send.AllMembers(common.DeviceAddr); |
| | | Send.LockList.AddRange(allMemberslist); |
| | | } |
| | | |
| | | UserList(macport, common, editdeviceConditionsInfo); |
| | | CommonPage.Loading.Hide(); |
| | | } |
| | | /// <summary> |
| | | /// 成员列表的方法 |
| | | /// </summary> |
| | | /// <param name="macport"></param> |
| | | void UserList(string macport, CommonDevice common, Dictionary<string, string> editdeviceConditionsInfo) |
| | | { |
| | | |
| | | foreach (var user in Send.LockList) |
| | | { |
| | |
| | | userRow.AddChidren(userBack); |
| | | |
| | | EventHandler<MouseEventArgs> useridclick = (sender, e) => |
| | | { |
| | | User(user, common, editdeviceConditionsInfo); |
| | | |
| | | }; |
| | | userBtn.MouseUpEventHandler += useridclick; |
| | | userBack.MouseUpEventHandler += useridclick; |
| | | userFramelayout.MouseUpEventHandler += useridclick; |
| | | userRow.MouseUpEventHandler += useridclick; |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 当前成员信息的方法 |
| | | /// </summary> |
| | | /// <param name="user"></param> |
| | | void User(Send.MembershipIfon user, CommonDevice common, Dictionary<string, string> editdeviceConditionsInfo) |
| | | { |
| | | var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; |
| | | this.AddChidren(flMain); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | Btncomplete.MouseUpEventHandler += (sender3, e3) => |
| | | { |
| | | string userIdstr = "", openModestr=""; |
| | |
| | | |
| | | }; |
| | | |
| | | }; |
| | | userBtn.MouseUpEventHandler += useridclick; |
| | | userBack.MouseUpEventHandler += useridclick; |
| | | userFramelayout.MouseUpEventHandler += useridclick; |
| | | userRow.MouseUpEventHandler += useridclick; |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |