| | |
| | | /// <summary> |
| | | /// 回调刷新 |
| | | /// </summary> |
| | | Action backActon; |
| | | Action<GroupControl> backActon; |
| | | /// <summary> |
| | | /// 是否新增群控 |
| | | /// </summary> |
| | |
| | | |
| | | GroupControlType groupControlType = new GroupControlType(); |
| | | |
| | | public AddGroupControlPage(GroupControl groupControl, Action action) |
| | | public AddGroupControlPage(GroupControl groupControl, Action<GroupControl> action) |
| | | { |
| | | bodyView = this; |
| | | if(groupControl == null) |
| | |
| | | Action chooseRoomBackAction = () => { |
| | | try |
| | | { |
| | | groupControl.uids = groupControl.roomIds; |
| | | btnLocationValues.Text = groupControl.GetRoomListName(); |
| | | } |
| | | catch { } |
| | |
| | | { |
| | | MainPage.Log($"添加群控成功,转译返回数据失败:{ex.Message}"); |
| | | } |
| | | backActon?.Invoke(); |
| | | backActon?.Invoke(groupControl); |
| | | this.RemoveFromParent(); |
| | | } |
| | | else |
| | |
| | | { |
| | | temp = groupControl; |
| | | } |
| | | backActon?.Invoke(); |
| | | backActon?.Invoke(temp); |
| | | this.RemoveFromParent(); |
| | | } |
| | | else |
| | |
| | | /// <summary> |
| | | /// 显示的设备的总数 |
| | | /// </summary> |
| | | int showCount = 0; |
| | | int showCount = -1; |
| | | |
| | | /// <summary> |
| | | /// 加载功能row |
| | |
| | | { |
| | | if (!isAppend) |
| | | { |
| | | showCount = 0; |
| | | showCount = -1; |
| | | functionListView.RemoveAll(); |
| | | } |
| | | for(var i =0;i<100;i++) |
| | |
| | | { |
| | | btnConfrim.IsSelected = false; |
| | | } |
| | | if (groupControlLightList.Count == functions.Count) |
| | | if (groupControlLightList.Count != functions.Count) |
| | | { |
| | | btnChooseAll.TextID = StringId.SelectedAll; |
| | | } |
| | |
| | | var form = new FloorRoomSelectPopupView(); |
| | | form.ShowDeviceFunctionView(btnFloor, this.lightList, (selectId, listFunc) => |
| | | { |
| | | groupControlLightList.Clear(); |
| | | groupControl.sids.Clear(); |
| | | btnChooseAll.TextID = StringId.SelectAll; |
| | | btnConfrim.IsSelected = false; |
| | | btnChooseAll.MouseUpEventHandler = (sender2, e2) => { |
| | | if (groupControlLightList.Count > 0) |
| | | { |