| | |
| | | } |
| | | } |
| | | |
| | | //如果是晾衣架 |
| | | if (deviceObj.Type == DeviceType.Airer) |
| | | { |
| | | var airer = deviceObj as Airer; |
| | | SetAirerFunTimeDevice(airer); |
| | | } |
| | | else |
| | | { |
| | | //关闭自身 |
| | | this.CloseForm(); |
| | | } |
| | | //如果是晾衣架「时间先不处理」 |
| | | //if (deviceObj.Type == DeviceType.Airer) |
| | | //{ |
| | | // var airer = deviceObj as Airer; |
| | | // SetAirerFunTimeDevice(airer); |
| | | //} |
| | | //else |
| | | //{ |
| | | //关闭自身 |
| | | this.CloseForm(); |
| | | //} |
| | | |
| | | }; |
| | | //如果当前是展示模板,则不能编辑 |
| | |
| | | //回路备注 |
| | | string caption = Language.StringByID(R.MyInternationalizationString.uDeviceEpointNote); |
| | | string nameValue = Common.LocalDevice.Current.GetDeviceEpointName(nowSelectDevice); |
| | | if (this.deviceObj.Type == DeviceType.Airer) |
| | | { |
| | | nameValue = Common.LocalDevice.Current.GetDeviceMacName(nowSelectDevice); |
| | | } |
| | | |
| | | if (dicDeviceSaveName.ContainsKey(nowSelectDevice.DeviceEpoint) == true) |
| | | { |
| | | nameValue = dicDeviceSaveName[nowSelectDevice.DeviceEpoint]; |