From 611786df5108dca0bdcff03834cc285cba4b8e61 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 13 十月 2020 16:48:43 +0800
Subject: [PATCH] 2020-10-13-1
---
HDL_ON/UI/UI2/2-Classification/FunctionPage.cs | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
index 668f718..96da5d9 100644
--- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs
@@ -97,8 +97,37 @@
continue;
}
}
- functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) });
+ if(titleId == StringId.FloorHeating)
+ {
+ if(function.functionType != FunctionType.FloorHeating )
+ {
+ continue;
+ }
+ }
+ if(titleId == StringId.Electric)
+ {
+ if(function.functionType != FunctionType.Socket &&
+ function.functionType != FunctionType.TV &&
+ function.functionType != FunctionType.Fan)
+ {
+ continue;
+ }
+ }
+ if (titleId == StringId.EnvironmentalScience)
+ {
+ if (function.functionType != FunctionType.PM10 ||
+ function.functionType != FunctionType.PM25 ||
+ //function.functionType != FunctionType.Noise ||
+ function.functionType != FunctionType.WindPower ||
+ function.functionType != FunctionType.CO2 ||
+ function.functionType != FunctionType.Temp ||
+ function.functionType != FunctionType.TVOC ||
+ function.functionType != FunctionType.Humidity)
+ {
+ continue;
+ }
+ }
if (function.functionType == FunctionType.RGB || function.functionType == FunctionType.Dimmer)
{
var functionDiv = new FunctionControlZone(function)
@@ -131,6 +160,7 @@
functionDiv.LoadFunctionDiv();
functionListView.AddChidren(functionDiv);
}
+ functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(10) });
}
}
--
Gitblit v1.8.0