| | |
| | | var list2 = this.GetVideoDeviceList(); |
| | | list.AddRange(list1); |
| | | list.AddRange(list2); |
| | | list.AddRange(FunctionList.List.groupControls); |
| | | #if DEBUG |
| | | GetTestDevice(ref list, true); |
| | | #endif |
| | |
| | | { |
| | | List<string> deviceStrTypeList = new List<string>(); |
| | | deviceStrTypeList.Clear(); |
| | | |
| | | |
| | | //群控 |
| | | var gp = deviceList.Find((device) => |
| | | device.spk == SPK.GroupControl); |
| | | if (gp != null) |
| | | { |
| | | deviceStrTypeList.Add(Language.StringByID(StringId.GroupControl)); |
| | | } |
| | | |
| | | ///灯光类 |
| | | var lightjosn = deviceList.Find((device) => |
| | | device.spk == SPK.LightSwitch |
| | |
| | | functionTypeList.Add(SPK.PanelSocket); |
| | | functionTypeList.Add(SPK.ElectricSocket); |
| | | } |
| | | //群控 |
| | | else if (deviceType == Language.StringByID(StringId.GroupControl)) |
| | | { |
| | | functionTypeList.Add(SPK.GroupControl); |
| | | } |
| | | ///窗帘类 |
| | | else if (deviceType == Language.StringByID(StringId.Curtain)) |
| | | { |
| | |
| | | else |
| | | { |
| | | //全部区域 |
| | | functionTypeList.Add(SPK.GroupControl); |
| | | functionTypeList.Add(SPK.Peephole); |
| | | functionTypeList.Add(SPK.Ev_Ipcam); |
| | | functionTypeList.Add(SPK.LightSwitch); |
| | |
| | | break; |
| | | case target_if: |
| | | { |
| | | deviceTypeList.Add(SPK.GroupControl); |
| | | deviceTypeList.Add(SPK.LightSwitch); |
| | | deviceTypeList.Add(SPK.LightRGB); |
| | | deviceTypeList.Add(SPK.LightRGBW); |