예제 #1
0
 // Delete all trips
 public void DeleteAll()
 {
     try
     {
         foreach (TripViewModel trip in _Trips)
         {
             tripManager.Delete(trip);
         }
         _Trips.Clear();
         currentTrip = null;
         Debug.WriteLine("TMVM: Deleted all trips!");
     }
     catch { Debug.WriteLine("TMVM: Coudn't delete all trips :("); }
 }