wxr
2022-05-05 5985ef28a5722360fa00f88f23544ed585fd05ef
HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddOutputPage.cs
@@ -145,7 +145,7 @@
                {
                    continue;
                }
                if (!string.IsNullOrEmpty(roomId) && roomId == "ALLSELECT")
                if (!string.IsNullOrEmpty(roomId) && roomId != "ALLSELECT")
                {
                    if (!function.roomIds.Contains(roomId))
                    {
@@ -172,7 +172,7 @@
                {
                    continue;
                }
                if (!string.IsNullOrEmpty(roomId))
                if (!string.IsNullOrEmpty(roomId) && roomId != "ALLSELECT")
                {
                    if (!scene.roomIds.Contains(roomId))
                    {
@@ -202,6 +202,12 @@
        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);
@@ -264,7 +270,8 @@
                };
                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
@@ -317,6 +324,9 @@
            }
                });
            }).Start();
        }
@@ -471,7 +481,8 @@
                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);