Exemple #1
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");
 }
Exemple #2
0
 public void ProcessRouteItems(MapItem[] items)
 {
     waypointIndex = 0;
     RoutePushpins.Clear();
     foreach (MapItem item in items)
     {
         MapPushpin pushpin = item as MapPushpin;
         if (pushpin != null)
         {
             pushpin.Text = NextWaypointLetter();
             RoutePushpins.Add(pushpin);
         }
         MapPolyline polyline = item as MapPolyline;
         if (polyline != null)
         {
             polyline.Effect = new DropShadowEffect()
             {
                 Direction = -90, ShadowDepth = 1
             }
         }
         ;
     }
     Helpers.Clear();
 }