1 write to _host
System.Windows.Forms.Design (1)
System\ComponentModel\Design\UndoEngine.cs (1)
44
_host
= GetRequiredService<IDesignerHost>();
11 references to _host
System.Windows.Forms.Design (11)
System\ComponentModel\Design\UndoEngine.cs (9)
49
_host
.TransactionOpening += OnTransactionOpening;
50
_host
.TransactionClosed += OnTransactionClosed;
157
if (reason != PopUnitReason.Normal || !
_host
.InTransaction)
232
_host
.TransactionOpening -= OnTransactionOpening;
233
_host
.TransactionClosed -= OnTransactionClosed;
442
if (Enabled &&
_host
is not null &&
_host
.Container is not null && ComponentChangeService is not null)
445
foreach (IComponent comp in
_host
.Container.Components)
529
_unitStack.Push(CreateUndoUnit(
_host
.TransactionDescription, _unitStack.Count == 0));
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
386
transaction = UndoEngine.
_host
.CreateTransaction();
System\ComponentModel\Design\UndoEngine.UndoUnit.RenameUndoEvent.cs (1)
29
IComponent? comp = engine.
_host
.Container.Components[_after];