public void Do(IOleUndoManager pUndoManager) { // docs say this can be null. if (pUndoManager != null) { // use this as the undo unit also. pUndoManager.Open(this); } var units = _children; _children = new List <IOleUndoUnit>(); // Invoke child units in reverse order. for (var i = units.Count - 1; i >= 0; i--) { var child = units[i]; child.Do(pUndoManager); } if (pUndoManager != null) { NativeMethods.ThrowOnFailure(pUndoManager.Close(this, 1)); } }
public void Do(IOleUndoManager pUndoManager) { // docs say this can be null. if (pUndoManager != null) { // use this as the undo unit also. pUndoManager.Open(this); } var units = _children; _children = new List<IOleUndoUnit>(); // Invoke child units in reverse order. for (var i = units.Count - 1; i >= 0; i--) { var child = units[i]; child.Do(pUndoManager); } if (pUndoManager != null) { NativeMethods.ThrowOnFailure(pUndoManager.Close(this, 1)); } }
public void Open(IOleParentUndoUnit pPUU) { _wrappedUndoManager.Open(pPUU); }