示例#1
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory, ITextUndoTransaction parent)
 {
     _textUndoHistory = textUndoHistory;
     _state = UndoTransactionState.Open;
     _parent = parent;
     MergePolicy = new Policy();
 }
示例#2
0
 public ITextUndoHistory RegisterHistory(object context)
 {
     ITextUndoHistory history;
     if (!_map.TryGetValue(context, out history))
     {
         history = new TextUndoHistory();
         _map.Add(context, history);
     }
     return history;
 }
示例#3
0
        public ITextUndoHistory RegisterHistory(object context)
        {
            ITextUndoHistory history;

            if (!_map.TryGetValue(context, out history))
            {
                history = new TextUndoHistory();
                _map.Add(context, history);
            }
            return(history);
        }
示例#4
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory)
 {
     _textUndoHistory = textUndoHistory;
 }
示例#5
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory)
     : this(textUndoHistory, null)
 {
 }
示例#6
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory, string description)
 {
     _textUndoHistory = textUndoHistory;
     Description      = description;
 }
示例#7
0
 public TextUndoTransaction(TextUndoHistory textUndoHistory, string description)
 {
     _textUndoHistory = textUndoHistory;
     Description = description;
 }