| | |
| | | List<Function> functionList; |
| | | int titleId; |
| | | |
| | | public Action DelAction; |
| | | public FunctionPage() |
| | | { |
| | | bodyView = this; |
| | |
| | | } |
| | | else if (titleId == StringId.Electric) |
| | | { |
| | | |
| | | functionList.AddRange(FunctionList.List.GetElectricals()); |
| | | |
| | | } |
| | | else if (titleId == StringId.EnvironmentalScience) |
| | | { |
| | |
| | | else if (titleId == StringId.SecurityMonitoring) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetIpCamImouList()); |
| | | } |
| | | else if(titleId == StringId.EnergyMonitoring) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetEnergyList()); |
| | | } |
| | | functionList = functionList.OrderByDescending(o => o.controlCounter).ToList(); |
| | | |
| | |
| | | { |
| | | continue; |
| | | } |
| | | if (function.spk == SPK.LightRGBW || function.spk == SPK.LightRGB || function.spk == SPK.LightDimming) |
| | | if (function.spk == SPK.LightCCT || function.spk == SPK.LightRGBW || function.spk == SPK.LightRGB || function.spk == SPK.LightDimming) |
| | | { |
| | | var functionDiv = new FunctionControlZone(function,null) |
| | | { |
| | |
| | | functionListView.RemoveAll(); |
| | | showList.Remove(function);//先移除 |
| | | ShowFunctionRow(showList,isAppend); |
| | | this.DelAction?.Invoke(); |
| | | |
| | | }; |
| | | var functionDiv = new FunctionControlZone(function, deviceDelAction) |