| | |
| | | |
| | | Action<string> refreshFunctionCount; |
| | | |
| | | /// <summary> |
| | | /// 之前的分享列表 |
| | | /// </summary> |
| | | List<ShareData> funs; |
| | | /// <summary> |
| | | /// 属于当前房间最终的设备分享列表 |
| | | /// </summary> |
| | | List<ShareData> funs_New; |
| | | /// <summary> |
| | | /// 删除的分享列表 |
| | | /// </summary> |
| | | List<ShareData> funs_Del; |
| | | |
| | | public MemberFunctionPermissionPage(ResidenceMemberInfo mInfo, Room r, Action<string> action) |
| | |
| | | Y = Application.GetRealHeight(519 + 64), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Height = Application.GetRealWidth(44), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | void LoadFunctionRow(List<ShareData> shareDatas) |
| | | { |
| | | contentView.RemoveAll(); |
| | | foreach (var function in room.functions) |
| | | foreach (var function in room.GetRoomFunctions(false)) |
| | | { |
| | | var roomView = new FrameLayout() |
| | | { |
| | |
| | | Tag = "ChooseIcon" |
| | | }; |
| | | roomView.AddChidren(btnChoose); |
| | | if (shareDatas.Find((obj) => obj.ShareName == function.sid) != null) |
| | | |
| | | var shareData = shareDatas.Find((obj) => obj.shareTypeId == function.deviceId); |
| | | if (shareData != null) |
| | | { |
| | | btnChoose.IsSelected = true; |
| | | //刷新属于当前房间的分享统计 |
| | | funs_New.Add(shareData); |
| | | } |
| | | else |
| | | { |