Provides a very simple ITextUndoHistory implementation. Sufficient for us to test simple undo scenarios inside the unit tests
Inheritance: IBasicUndoHistory
Example #1
0
 internal BasicUndoTransaction(BasicUndoHistory textUndoHistory, string description)
 {
     _textUndoHistory = textUndoHistory;
     Description = description;
 }
Example #2
0
 ITextUndoHistory ITextUndoHistoryRegistry.RegisterHistory(object context)
 {
     IBasicUndoHistory history;
     if (!_map.TryGetValue(context, out history))
     {
         history = new BasicUndoHistory(context);
         _map.Add(context, history);
     }
     return history;
 }