Пример #1
0
 public ITextUndoHistory RegisterHistory(object context)
 {
     ITextUndoHistory history;
     if (!_map.TryGetValue(context, out history))
     {
         history = new TextUndoHistory();
         _map.Add(context, history);
     }
     return history;
 }
Пример #2
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory, string description)
 {
     _textUndoHistory = textUndoHistory;
     Description = description;
 }