Esempio n. 1
0
 void ExtractItineraryItems(BingRouteResult result)
 {
     ItineraryItems.Clear();
     foreach (BingRouteLeg leg in result.Legs)
     {
         foreach (BingItineraryItem item in leg.Itinerary)
         {
             ItineraryItems.Add(item);
         }
     }
 }
Esempio n. 2
0
 public void Clear()
 {
     if (RoutePath != null)
     {
         RoutePath.Clear();
     }
     Helpers.Clear();
     RoutePushpins.Clear();
     ItineraryItems.Clear();
     DrivePathDistance = 0.0;
     waypoints.Clear();
     waypointIndex = 0;
     RaiseSearchPushpinsChanged(0);
     RaisePropertyChanged("Waypoints");
 }
 private void BuildItineraryList()
 {
     ItineraryItems.Clear();
     _itineraryItems.Sort((x, y) => x.Date.CompareTo(y.Date));
     _itineraryItems.ForEach(ii => ItineraryItems.Add(ii));
 }