/// <summary> /// Shows "Plan tour" popup page and lets the user edit the tour location list. /// </summary> /// <param name="planTourParameters">tour planning parameters</param> /// <returns>task to wait for</returns> public static async Task ShowAsync(PlanTourParameters planTourParameters) { var popupPage = new PlanTourPopupPage(planTourParameters); await popupPage.Navigation.PushPopupAsync(popupPage); }
/// <summary> /// Called to add a location to tour planning /// </summary> /// <param name="location">location to add</param> /// <returns>task to wait on</returns> private async Task AddTourPlanningLocationAsync(Location location) { this.planTourParameters.WaypointIdList.Add(location.Id); await PlanTourPopupPage.ShowAsync(this.planTourParameters); }