private void DroppedOff(RideDetails details) { RideState = LyftRideState.DroppedOff; RideDetailsTimer.Stop(); var parameter = new PaymentPageNavigationModel() { RideId = details.RideId, DriverName = details.Driver.FirstName, LineItems = details.LineItems, ProfileImageSrc = details.Driver.ImageUrl }; _settings.ActiveRideId = string.Empty; NavigationService.Navigate(typeof(Views.PaymentPage), parameter); }
public void PaymentClicked() { var parameter = new PaymentPageNavigationModel() { DriverName = "Claus", ProfileImageSrc = "ms-appx://29Quizlet/Assets/avatar.png", RideId = "123456789", LineItems = new List <LineItem>() { new LineItem() { Type = "Trip", Currency = "USD", Amount = 1500, }, new LineItem() { Type = "Service fee", Currency = "USD", Amount = 135, }, new LineItem() { Type = "Tip", Currency = "USD", Amount = 100, }, new LineItem() { Type = "Prime Time", Currency = "USD", Amount = 500, }, } }; NavigationService.Navigate(typeof(Views.PaymentPage), parameter); }