ITextUndoHistory ITextUndoHistoryRegistry.RegisterHistory(object context) { ITextUndoHistory history; if (!_map.TryGetValue(context, out history)) { history = new UndoHistory(context); _map.Add(context, history); } return(history); }
internal UndoTransaction(UndoHistory textUndoHistory, string description) { _textUndoHistory = textUndoHistory; Description = description; }