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); }
public DelegatedUndoPrimitiveImpl(UndoHistoryImpl history, UndoTransactionImpl parent, UndoableOperationCurried operationCurried) { redoOperations = new Stack <UndoableOperationCurried>(); undoOperations = new Stack <UndoableOperationCurried>(); this.parent = parent; this.history = history; this.state = DelegatedUndoPrimitiveState.Inactive; undoOperations.Push(operationCurried); }
public CatchOperationsFromHistoryForDelegatedPrimitive(MockTextUndoHistory history, MockTextUndoPrimitive primitive, DelegatedUndoPrimitiveState state) { _history = history; _primitive = primitive; primitive.State = state; history.ForwardToUndoOperation(primitive); }
public CatchOperationsFromHistoryForDelegatedPrimitive(UndoHistoryImpl history, DelegatedUndoPrimitiveImpl primitive, DelegatedUndoPrimitiveState state) { this.history = history; this.primitive = primitive; primitive.State = state; history.ForwardToUndoOperation(primitive); }