old mode 100755
new mode 100644
| | |
| | | /// 一键删除当前房间所有分享 |
| | | /// </summary> |
| | | /// <param name="funs_Del">需要一键删除的分享数据</param> |
| | | /// <param name="roomFunctionList">当前房间所有功能列表</param> |
| | | /// <param name="roomFunctionOrSceneList">当前房间所有功能列表</param> |
| | | /// <param name="roomId">如果房间ID为空,则代表管理无分配区域的功能,不需要删除房间分享</param> |
| | | /// <param name="btnFunctionCount">个数统计数量</param> |
| | | /// <param name="roomView">背景View</param> |
| | | void DeleteRoomAllShare(List<ShareData> funs_Del, List<Function> roomFunctionList, string roomId, Button btnFunctionCount, RowLayout roomView) |
| | | void DeleteRoomAllShare(List<ShareData> funs_Del, List<RoomData> roomFunctionOrSceneList, string roomId, Button btnFunctionCount, RowLayout roomView) |
| | | { |
| | | //需要删除的分享为0 |
| | | if (funs_Del == null || funs_Del.Count == 0) |
| | |
| | | try |
| | | { |
| | | bool result = false; |
| | | //如果房间ID为空,则代表管理无分配区域的功能,不需要删除房间分享 |
| | | if (!string.IsNullOrEmpty(roomId)) |
| | | { |
| | | //删除房间分享 |
| | | var success = DeleteShareRoom(roomId); |
| | | if (success) |
| | | { |
| | | Utlis.WriteLine("删除房间分享成功"); |
| | | } |
| | | else |
| | | { |
| | | Utlis.WriteLine("删除房间分享失败"); |
| | | } |
| | | } |
| | | //2020-12-22 屏蔽房间分享管理 |
| | | ////如果房间ID为空,则代表管理无分配区域的功能,不需要删除房间分享 |
| | | //if (!string.IsNullOrEmpty(roomId)) |
| | | //{ |
| | | // //删除房间分享 |
| | | // var success = DeleteShareRoom(roomId); |
| | | // if (success) |
| | | // { |
| | | // Utlis.WriteLine("删除房间分享成功"); |
| | | // } |
| | | // else |
| | | // { |
| | | // Utlis.WriteLine("删除房间分享失败"); |
| | | // } |
| | | //} |
| | | |
| | | //2.批量删除分享 |
| | | var deleteShareObj = new DeleteShareObj() |
| | |
| | | //清空 |
| | | funs_Del.Clear(); |
| | | memberInfo.CurResidenceShareData = funs_final; |
| | | btnFunctionCount.Text = 0 + "/" + roomFunctionList.Count.ToString(); |
| | | btnFunctionCount.Text = 0 + "/" + roomFunctionOrSceneList.Count.ToString(); |
| | | //关闭右滑菜单 |
| | | roomView.HideMenu(); |
| | | }); |