| | |
| | | { |
| | | action(); |
| | | this.RemoveFromParent(); |
| | | |
| | | }; |
| | | |
| | | VerticalRefreshLayout vv = new VerticalRefreshLayout(); |
| | | vv.Height = Application.GetRealHeight(667 - 64); |
| | | vv.Y = Application.GetRealHeight(64); |
| | |
| | | }; |
| | | #endregion |
| | | UIView(vv); |
| | | topView.topIconBtn.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> |