From f718d23a262a5a8e1241fdeaeb4153399f95e79d Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 21 四月 2020 09:19:05 +0800 Subject: [PATCH] 20200421 --- HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs index 4881199..5de0c0e 100644 --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -41,12 +41,11 @@ }; bodyView.AddChidren(functionListView); - - foreach (var function in room.functionData) + foreach (var function in room.functions) { functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); - if (function.functionType == "RGB" || function.functionType == "Dimmer") + if (function.functionType == FunctionType.RGB || function.functionType == FunctionType.Dimmer) { var functionDiv = new FunctionControlZone(function) { -- Gitblit v1.8.0