private async Task TSelectionChanged() { var selected = (CustomPin)ToItemPicker.SelectedValue; var station = await RidesService.GetStation(selected.Id); RouteSelected.Visible = true; ToPS.Visible = true; ToText.Text = selected.Label; ToPSText.Text = $"Empty bike docks {station.EmptyDocks} Avilable bikes {station.Occupied}"; }
public async Task BookClicked() { var fromStation = await RidesService.GetStation(From.Id); var toStation = await RidesService.GetStation(To.Id); var booking = await RidesService.RequestBikeBooking(fromStation, toStation); if (booking != null) { // FindParent<MainMenu>().UpcomingRideButton.Enabled = true; await Nav.Go <BookingDetail>(new { ShowThanks = true, Booking = booking }); } }