ITextUndoHistory ITextUndoHistoryRegistry.RegisterHistory(object context)
 {
     if (!_map.TryGetValue(context, out IBasicUndoHistory history))
     {
         history = new BasicUndoHistory(context);
         _map.Add(context, history);
     }
     return(history);
 }
示例#2
0
 internal BasicUndoTransaction(BasicUndoHistory textUndoHistory, string description)
 {
     _textUndoHistory = textUndoHistory;
     Description      = description;
 }