wxr
2024-04-24 455c22e3681020e0af984faadf72737d300555a8
Update RoomPage.cs
1个文件已修改
59 ■■■■ 已修改文件
HDL_ON/UI/UI2/2-Classification/RoomPage.cs 59 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/2-Classification/RoomPage.cs
@@ -95,9 +95,36 @@
            };
            bodyView.AddChidren(functionListView);
            try
            {
                foreach (var scene in room.GetRoomScenes(false))
                {
                    if (scene == null)
                    {
                        continue;
                    }
                    functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) });
                    var sceneRow = new FrameLayout()
                    {
                        Gravity = Gravity.CenterHorizontal,
                        Width = Application.GetRealWidth(343),
                        Height = Application.GetRealHeight(116),
                        Radius = (uint)Application.GetMinRealAverage(12),
                        BorderColor = 0x00FFFFFF,
                        BorderWidth = 1,
                        BackgroundColor = CSS_Color.MainBackgroundColor,
                        Tag = "Scene-" + scene.sid
                    };
                    functionListView.AddChidren(sceneRow);
                    LoadSceneRow(sceneRow, scene);
                }
            }
            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))
@@ -147,33 +174,7 @@
                    functionListView.AddChidren(functionDiv);
                }
            }
            try
            {
                foreach (var scene in room.GetRoomScenes(false))
                {
                    if (scene == null)
                    {
                        continue;
                    }
                    functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) });
                    var sceneRow = new FrameLayout()
                    {
                        Gravity = Gravity.CenterHorizontal,
                        Width = Application.GetRealWidth(343),
                        Height = Application.GetRealHeight(116),
                        Radius = (uint)Application.GetMinRealAverage(12),
                        BorderColor = 0x00FFFFFF,
                        BorderWidth = 1,
                        BackgroundColor = CSS_Color.MainBackgroundColor,
                        Tag = "Scene-" + scene.sid
                    };
                    functionListView.AddChidren(sceneRow);
                    LoadSceneRow(sceneRow, scene);
                }
            }catch (Exception ex)
            {
                MainPage.Log($"RoomPage LoadPage Error:{ex.Message}");
            }
        }