1 write to UndoEngine
System.Windows.Forms.Design (1)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
30
UndoEngine
= engine.OrThrowIfNull();
20 references to UndoEngine
System.Windows.Forms.Design (19)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (19)
32
if (
UndoEngine
.TryGetService(out ISelectionService? ss))
106
AddEvent(new AddRemoveUndoEvent(
UndoEngine
, e.Component, true));
208
if (
UndoEngine
.GetName(e.Component, false) is not null)
228
string? name =
UndoEngine
.GetName(e.Component, false);
250
changeEvent = new ChangeUndoEvent(
UndoEngine
, e, serializeBeforeState);
260
changeEvent = new ChangeUndoEvent(
UndoEngine
, new ComponentChangingEventArgs(owningComp, null), serializeBeforeState);
344
AddRemoveUndoEvent evt = new(
UndoEngine
, e.Component, false);
360
protected object? GetService(Type serviceType) =>
UndoEngine
.GetService(serviceType);
374
UndoUnit? savedUnit =
UndoEngine
._executingUnit;
375
UndoEngine
._executingUnit = this;
381
UndoEngine
.OnUndoing(EventArgs.Empty);
386
transaction =
UndoEngine
._host.CreateTransaction();
399
UndoEngine
._executingUnit = savedUnit;
402
UndoEngine
.OnUndone(EventArgs.Empty);
455
(_events[beforeIdx]).BeforeUndo(
UndoEngine
);
460
(_events[undoIdx]).Undo(
UndoEngine
);
470
if (
UndoEngine
.TryGetService(out ISelectionService? ss))
507
(_events[beforeIdx]).BeforeUndo(
UndoEngine
);
512
(_events[undoIdx]).Undo(
UndoEngine
);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\UndoUnitTests.cs (1)
58
public new UndoEngine UndoEngine => base.
UndoEngine
;