1 write to _events
System.Windows.Forms.Design (1)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
62
_events
??= [];
30 references to _events
System.Windows.Forms.Design (30)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (30)
53
public virtual bool IsEmpty =>
_events
is null ||
_events
.Count == 0;
64
_events
.Add(e);
143
for (int i = startIndex + 1; i <
_events
!.Count; i++)
145
if (
_events
[i] is AddRemoveUndoEvent addEvt && !addEvt.NextUndoAdds)
149
else if (
_events
[i] is ChangeUndoEvent changeEvt && ChangeEventsSymmetric(changeEvt.ComponentChangingEventArgs, e))
153
else if (
_events
[i] is RenameUndoEvent)
167
if (
_events
is not null && e is not null)
169
for (int i = 0; i <
_events
.Count; i++)
176
if (
_events
[i] is ChangeUndoEvent ce && ChangeEventsSymmetric(ce.ComponentChangingEventArgs, e) && i !=
_events
.Count - 1)
181
_events
.RemoveAt(i);
182
_events
.Add(ce);
284
if (
_events
is not null && e is not null)
288
for (int idx =
_events
.Count - 1; idx >= 0; idx--)
292
changeEvt =
_events
[idx] as ChangeUndoEvent;
296
if (
_events
[idx] is AddRemoveUndoEvent evt && evt.OpenComponent == e.Component)
303
if (idx !=
_events
.Count - 1 && changeEvt is not null)
309
if (
_events
[i] is not ChangeUndoEvent)
319
_events
.RemoveAt(idx);
320
_events
.Insert(changeIdx, evt);
415
if (
_events
is not null)
438
for (int idx =
_events
.Count - 1; idx >= 0; idx--)
443
if (
_events
[groupIdx].CausesSideEffects)
455
(
_events
[beforeIdx]).BeforeUndo(UndoEngine);
460
(
_events
[undoIdx]).Undo(UndoEngine);
488
int count =
_events
.Count;
495
if (
_events
[groupIdx].CausesSideEffects)
507
(
_events
[beforeIdx]).BeforeUndo(UndoEngine);
512
(
_events
[undoIdx]).Undo(UndoEngine);