public CatchOperationsFromHistoryForDelegatedPrimitive(UndoHistoryImpl history, DelegatedUndoPrimitiveImpl primitive, DelegatedUndoPrimitiveState state) { _history = history; _primitive = primitive; primitive.State = state; history.ForwardToUndoOperation(primitive); }
public DelegatedUndoPrimitiveImpl(UndoHistoryImpl history, UndoTransactionImpl parent, UndoableOperationCurried operationCurried) { RedoOperations = new Stack<UndoableOperationCurried>(); _undoOperations = new Stack<UndoableOperationCurried>(); _parent = parent; _history = history; _state = DelegatedUndoPrimitiveState.Inactive; _undoOperations.Push(operationCurried); }