private void DeleteItineraryItem(object param)
        {
            ItineraryItem ii = (ItineraryItem)param;

            _tripRepository.DeleteItineraryItem(ii.Id);
            ItineraryItems.Remove(ii);
        }
예제 #2
0
 void ExtractItineraryItems(BingRouteResult result)
 {
     ItineraryItems.Clear();
     foreach (BingRouteLeg leg in result.Legs)
     {
         foreach (BingItineraryItem item in leg.Itinerary)
         {
             ItineraryItems.Add(item);
         }
     }
 }
예제 #3
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));
 }