| | |
| | | |
| | | foreach (var function in FunctionList.List.Functions) |
| | | { |
| | | if (!MainPage.SceneSupportFunctionList.Contains(function.spk)) |
| | | { |
| | | continue; |
| | | } |
| | | if (function == null) |
| | | { |
| | | continue; |
| | | } |
| | | //如果场景是灯光场景,只能加载灯光功能 |
| | | if (scene.sceneType == SceneType.LightScene) |
| | | { |
| | | if (!SPK.LightSpkList().Contains(function.spk)) |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | function.roomIds.Remove(null); |
| | | if (scene.functions.Find((obj) => obj.sid == function.sid) != null) |
| | | { |
| | |
| | | /// <summary> |
| | | /// 显示功能Row |
| | | /// </summary> |
| | | /// <param name="showUnallocated">是否是显示未分配</param> |
| | | void LoadFunctionListRow(List<Function> functions) |
| | | { |
| | | functionListView.RemoveAll(); |
| | |
| | | } |
| | | foreach (var function in functions) |
| | | { |
| | | if (function.Spk_Prefix != FunctionCategory.Light && |
| | | function.Spk_Prefix != FunctionCategory.AC && |
| | | function.Spk_Prefix != FunctionCategory.FloorHeat && |
| | | function.Spk_Prefix != FunctionCategory.Curtain |
| | | ) |
| | | if (!MainPage.SceneSupportFunctionList.Contains(function.spk)) |
| | | { |
| | | continue; |
| | | } |