| | |
| | | inputView.btnState.Text = str; |
| | | } |
| | | break; |
| | | case SPK.SensorLight: |
| | | { |
| | | string str = this.GetText(dicList, "illuminance"); |
| | | inputView.btnState.Text = str; |
| | | |
| | | } |
| | | break; |
| | | case SPK.DoorLock: |
| | | { |
| | | string value = this.GetValue(dicList); |
| | |
| | | if (device.spk == SPK.SensorEnvironment || device.spk == SPK.SensorEnvironmentHailin |
| | | || device.spk == SPK.SensorEnvironment2 |
| | | || device.spk == SPK.SensorEnvironment3 |
| | | || device.spk == SPK.SensorLight |
| | | ) |
| | | { |
| | | ///当前的索引值数据对象 |
| | |
| | | switch (key) |
| | | { |
| | | |
| | | case "illuminance": |
| | | { |
| | | int titleInt = 0; |
| | | if (comparator == ">") |
| | | { |
| | | titleInt = StringId.zhaomingdugaoyu; |
| | | } |
| | | else if (comparator == "<") |
| | | { |
| | | titleInt = StringId.zhaomingdudiyu; |
| | | } |
| | | ConditionDeviceFunList.Current.InputBoxAction(device, titleInt, indexVulae, true, stateValue); |
| | | } |
| | | break; |
| | | case "temperature": |
| | | { |
| | | int titleInt = 0; |
| | |
| | | } |
| | | if (!string.IsNullOrEmpty(volumet)) |
| | | { |
| | | stateStr += Language.StringByID(StringId.yinliang)+ volumet; |
| | | stateStr += Language.StringByID(StringId.yinliang) + volumet; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(stateStr)) |
| | |
| | | } |
| | | if (!string.IsNullOrEmpty(signal)) |
| | | { |
| | | stateStr += signal.Replace("_", " "); |
| | | var p = new PublicInterface(); |
| | | string key = p.GetKey(p.GetHisenseSignalSourceDic(), signal); |
| | | stateStr += key; |
| | | } |
| | | stateStr = stateStr.TrimEnd(','); |
| | | } |
| | |
| | | //怕调试软件乱上东西导致抛异常 |
| | | break; |
| | | } |
| | | button3.Text = value.Replace("_", " "); |
| | | var p = new PublicInterface(); |
| | | string key = p.GetKey(p.GetHisenseSignalSourceDic(), value); |
| | | button3.Text = key; |
| | | } |
| | | break; |
| | | } |
| | |
| | | switch (key) |
| | | { |
| | | |
| | | case "illuminance": |
| | | { |
| | | if (comparator == ">") |
| | | { |
| | | strtext = ">" + value; |
| | | } |
| | | else if (comparator == "<") |
| | | { |
| | | strtext = "<" + value; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case "temperature": |
| | | { |
| | | if (comparator == ">") |