| | |
| | | //有数据重新赋值 |
| | | dicSateteList.AddRange(dicList); |
| | | } |
| | | InpOrOutLogicMethod.Current.EditDeviceState(device, dicList, button1, button2, button3, button4); |
| | | InpOrOutLogicMethod.Current.EditDeviceState(device, dicList, button1, button2, button3, button4,""); |
| | | } |
| | | /// <summary> |
| | | /// 添加选中数据 |
| | |
| | | string value = dic["value"]; |
| | | if (dictionaryA["key"] == key && dictionaryA["comparator"] == comparatorValue) |
| | | { |
| | | if (this.checkSpk()) |
| | | if (this.CheckSpk()) |
| | | { |
| | | //有些设备需要增加这个判断 |
| | | if (dictionaryA["value"] == value) |
| | |
| | | /// 检查是否支持 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool checkSpk() |
| | | private bool CheckSpk() |
| | | { |
| | | if (this.function.spk == SPK.VideoDoorLock || |
| | | this.function.spk == SPK.doorgate |
| | |
| | | } |
| | | return false; |
| | | |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 判断dictionaryB是否完整包含另一个dictionaryA |
| | | /// </summary> |