| | |
| | | { |
| | | continue; |
| | | } |
| | | if (!string.IsNullOrEmpty(roomId) && roomId == "ALLSELECT") |
| | | if (!string.IsNullOrEmpty(roomId) && roomId != "ALLSELECT") |
| | | { |
| | | if (!function.roomIds.Contains(roomId)) |
| | | { |
| | |
| | | { |
| | | continue; |
| | | } |
| | | if (!string.IsNullOrEmpty(roomId)) |
| | | if (!string.IsNullOrEmpty(roomId) && roomId != "ALLSELECT") |
| | | { |
| | | if (!scene.roomIds.Contains(roomId)) |
| | | { |
| | |
| | | void LoadFunctionListRow() |
| | | { |
| | | functionListView.RemoveAll(); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | System.Threading.Thread.Sleep(50); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | |
| | | foreach (var function in allocatedList) |
| | | { |
| | | //var output = alarm.output.Find((obj) => obj.sid == function.sid); |
| | |
| | | }; |
| | | functionRow.AddChidren(btnChooseIcon); |
| | | |
| | | btnChooseIcon.MouseUpEventHandler = (sender, e) => { |
| | | btnChooseIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | btnChooseIcon.IsSelected = !btnChooseIcon.IsSelected; |
| | | var tempLocal = alarm.output.Find((obj) => |
| | | obj.sid == function.sid |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | }); |
| | | }).Start(); |
| | | } |
| | | |
| | | |
| | |
| | | var form = new FloorRoomSelectPopupView(); |
| | | form.ShowDeviceFunctionView(btnFloor, listAllFun, (selectId, listFun) => |
| | | { |
| | | SetData(selectId); |
| | | var selecteRoom = SpatialInfo.CurrentSpatial.RoomList.Find((obj) => obj.uid == selectId); |
| | | SetData(selecteRoom.roomId); |
| | | //重新刷新设备列表 |
| | | this.LoadFunctionListRow(); |
| | | }, nowSelectId); |