wxr
2023-04-23 098ca04f324624d97399c7c1040c46d2a96ebfaa
HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/AddGroupControlPage.cs
@@ -50,7 +50,7 @@
        /// <summary>
        /// 回调刷新
        /// </summary>
        Action backActon;
        Action<GroupControl> backActon;
        /// <summary>
        /// 是否新增群控
        /// </summary>
@@ -64,7 +64,7 @@
        GroupControlType groupControlType = new GroupControlType();
        public AddGroupControlPage(GroupControl groupControl, Action action)
        public AddGroupControlPage(GroupControl groupControl, Action<GroupControl> action)
        {
            bodyView = this;
            if(groupControl == null)
@@ -182,6 +182,7 @@
                Action chooseRoomBackAction = () => {
                    try
                    {
                        groupControl.uids = groupControl.roomIds;
                        btnLocationValues.Text = groupControl.GetRoomListName();
                    }
                    catch { }
@@ -389,7 +390,7 @@
                                    {
                                        MainPage.Log($"添加群控成功,转译返回数据失败:{ex.Message}");
                                    }
                                    backActon?.Invoke();
                                    backActon?.Invoke(groupControl);
                                    this.RemoveFromParent();
                                }
                                else
@@ -440,7 +441,7 @@
                                    {
                                        temp = groupControl;
                                    }
                                    backActon?.Invoke();
                                    backActon?.Invoke(temp);
                                    this.RemoveFromParent();
                                }
                                else
@@ -542,7 +543,7 @@
        /// <summary>
        /// 显示的设备的总数
        /// </summary>
        int showCount = 0;
        int showCount = -1;
        /// <summary>
        /// 加载功能row
@@ -562,7 +563,7 @@
                    {
                        if (!isAppend)
                        {
                            showCount = 0;
                            showCount = -1;
                            functionListView.RemoveAll();
                        }
                        for(var i =0;i<100;i++)
@@ -603,7 +604,7 @@
                                {
                                    btnConfrim.IsSelected = false;
                                }
                                if (groupControlLightList.Count == functions.Count)
                                if (groupControlLightList.Count != functions.Count)
                                {
                                    btnChooseAll.TextID = StringId.SelectedAll;
                                }
@@ -675,6 +676,10 @@
                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)
                        {