wxr
2024-12-02 ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a
HDL_ON/UI/UI2/2-Classification/RoomPage.cs
@@ -95,6 +95,9 @@
            };
            bodyView.AddChidren(functionListView);
            var list = room.GetRoomFunctions(false);
            try
            {
                foreach (var scene in room.GetRoomScenes(false))
@@ -118,22 +121,17 @@
                    functionListView.AddChidren(sceneRow);
                    LoadSceneRow(sceneRow, scene);
                }
            }
            catch (Exception ex)
            }catch (Exception ex)
            {
                MainPage.Log($"RoomPage LoadPage Error:{ex.Message}");
            }
            var list = room.GetRoomFunctions(false);
            foreach (var function in list)
            {
                if (MainPage.RoomNotSupportFunctionList.Contains(function.spk))
                {
                    continue;
                }
#if DEBUG
                //throw new ArgumentNullException();
#endif
                functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) });
@@ -155,7 +153,7 @@
                }
                else
                {
                    var functionDiv = new FunctionControlZone(function, () =>
                    {
                        this.ReLoadPage(); //删除设备后重新刷新UI
@@ -174,7 +172,6 @@
                    functionListView.AddChidren(functionDiv);
                }
            }
        }