Exemple #1
0
 public void RollbackTo(TrackableDataContainerTracker tracker)
 {
     if (PersonTracker != null)
     {
         PersonTracker.RollbackTo(tracker.PersonTracker);
     }
     if (DictionaryTracker != null)
     {
         DictionaryTracker.RollbackTo(tracker.DictionaryTracker);
     }
     if (ListTracker != null)
     {
         ListTracker.RollbackTo(tracker.ListTracker);
     }
 }
Exemple #2
0
 public void RollbackTo(IDataContainer trackable)
 {
     if (PersonTracker != null)
     {
         PersonTracker.RollbackTo(trackable.Person);
     }
     if (DictionaryTracker != null)
     {
         DictionaryTracker.RollbackTo(trackable.Dictionary);
     }
     if (ListTracker != null)
     {
         ListTracker.RollbackTo(trackable.List);
     }
 }