1 type derived from UndoUnit
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\UndoUnitTests.cs (1)
52protected class SubUndoUnit : UndoUnit
2 instantiations of UndoUnit
System.Windows.Forms.Design (1)
System\ComponentModel\Design\UndoEngine.cs (1)
202return new UndoUnit(this, name);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\UndoUnitTests.cs (1)
45Assert.Throws<ArgumentNullException>("engine", () => new UndoUnit(null, "name"));
21 references to UndoUnit
DesignSurfaceExt (5)
UndoEngineExt.cs (5)
10private readonly Stack<UndoUnit> _undoStack = new(); 11private readonly Stack<UndoUnit> _redoStack = new(); 31UndoEngine.UndoUnit unit = _undoStack.Pop(); 53UndoEngine.UndoUnit unit = _redoStack.Pop(); 69protected override void AddUndoUnit(UndoEngine.UndoUnit unit)
System.Windows.Forms.Design (15)
System\ComponentModel\Design\UndoEngine.cs (14)
21private readonly Stack<UndoUnit> _unitStack; // the stack of active (non-committed) units. 22private UndoUnit? _executingUnit; // the unit currently executing an undo. 39_unitStack = new Stack<UndoUnit>(); 104protected abstract void AddUndoUnit(UndoUnit unit); 159UndoUnit unit = _unitStack.Pop(); 200protected virtual UndoUnit CreateUndoUnit(string? name, bool primary) 213protected virtual void DiscardUndoUnit(UndoUnit unit) 318foreach (UndoUnit unit in _unitStack) 349foreach (UndoUnit unit in _unitStack) 357foreach (UndoUnit unit in _unitStack) 393foreach (UndoUnit unit in _unitStack) 401foreach (UndoUnit unit in _unitStack) 490foreach (UndoUnit unit in _unitStack) 508foreach (UndoUnit unit in _unitStack)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
374UndoUnit? savedUnit = UndoEngine._executingUnit;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\UndoUnitTests.cs (1)
48protected override void AddUndoUnit(UndoUnit unit)