| | |
| | | view2.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | //主界面控件 |
| | | FrameLayout fLayout = new FrameLayout |
| | | FrameLayout fLayout2 = new FrameLayout |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | | }; |
| | | this.AddChidren(fLayout); |
| | | TimeView(fLayout, device, view2.btnState); |
| | | this.AddChidren(fLayout2); |
| | | TimeView(fLayout2, device, view2.btnState); |
| | | |
| | | }; |
| | | |
| | |
| | | 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> |