| | |
| | | case SPK.SensorDryContact2: |
| | | { |
| | | |
| | | string value = this.GetKeyValue("on_off", dicList); |
| | | string value = this.GetKeyValue(FunctionAttributeKey.ContactStatus, dicList); |
| | | inputView.btnState.Text = Language.StringByID(StringId.offLogic); |
| | | if (value == "on") |
| | | if (value == "open") |
| | | { |
| | | inputView.btnState.Text = Language.StringByID(StringId.onLogic); |
| | | } |
| | |
| | | } |
| | | } |
| | | break; |
| | | case SPK.OtherCommon: |
| | | case SPK.AirSwitch: |
| | | case SPK.LightSwitch: |
| | | //插座 |
| | |
| | | break; |
| | | case SPK.ElectricSocket: |
| | | //开关灯光 |
| | | case SPK.OtherCommon: |
| | | case SPK.AirSwitch: |
| | | case SPK.LightSwitch: |
| | | //机械手 |
| | |
| | | foreach (var dic in dicList) |
| | | { |
| | | string value = dic["value"]; |
| | | if (value == "on") |
| | | if (value == "on" || value == "open") |
| | | { |
| | | button1.Text = Language.StringByID(StringId.onLogic); |
| | | } |