| | |
| | | }; |
| | | #endregion |
| | | UIView(vv); |
| | | topView.topIconBtn.MouseUpEventHandler += (sender, e) => |
| | | topView.clickSetBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var form = new AddMiniRemoteControlDirection1Page(); |
| | | form.AddForm(); |
| | | form.AddDeviceEvent += (device) => |
| | | { |
| | | var pir = device as Pir; |
| | | Pir pir = new Pir(); |
| | | pir.name = device.name; |
| | | pir.deviceId = device.deviceId; |
| | | pir.sid = device.sid; |
| | | Pir.pirDeviceList.Add(pir); |
| | | UIView(vv); |
| | | }; |
| | |
| | | //红外宝是否在线-离线 |
| | | if (pirDevice.online) |
| | | { |
| | | pirView.stateIconBtn.IsSelected = true; |
| | | pirView.stateTextBtn.IsSelected = true; |
| | | pirView.stateIconBtn.IsSelected = false; |
| | | pirView.stateTextBtn.IsSelected = false; |
| | | pirView.stateTextBtn.TextID = StringId.zaixian; |
| | | } |
| | | else |
| | | { |
| | | pirView.stateIconBtn.IsSelected = false; |
| | | pirView.stateTextBtn.IsSelected = false; |
| | | pirView.stateIconBtn.IsSelected = true; |
| | | pirView.stateTextBtn.IsSelected = true; |
| | | pirView.stateTextBtn.TextID = StringId.lixian; |
| | | } |
| | | //标记红外宝 |
| | | pirView.clickBtn.Tag = pirDevice; |