| | |
| | | { |
| | | action(); |
| | | this.RemoveFromParent(); |
| | | |
| | | }; |
| | | |
| | | VerticalRefreshLayout vv = new VerticalRefreshLayout(); |
| | | vv.Height = Application.GetRealHeight(667 - 64); |
| | | vv.Y = Application.GetRealHeight(64); |
| | |
| | | }; |
| | | #endregion |
| | | UIView(vv); |
| | | topView.clickSetBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var form = new AddMiniRemoteControlDirection1Page(); |
| | | form.AddForm(); |
| | | form.AddDeviceEvent += (device) => |
| | | { |
| | | Pir pir = new Pir(); |
| | | pir.name = device.name; |
| | | pir.deviceId = device.deviceId; |
| | | pir.sid = device.sid; |
| | | Pir.pirDeviceList.Add(pir); |
| | | UIView(vv); |
| | | }; |
| | | |
| | | }; |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | //红外宝是否在线-离线 |
| | | 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; |