4 writes to _events
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerEventService.cs (4)
327
_events
??= new EventHandlerList();
350
_events
??= new EventHandlerList();
373
_events
??= new EventHandlerList();
396
_events
??= new EventHandlerList();
28 references to _events
System.Windows.Forms.Design (28)
System\ComponentModel\Design\DesignerEventService.cs (28)
71
(
_events
?[s_eventActiveDesignerChanged] as ActiveDesignerEventHandler)?.Invoke(this, new ActiveDesignerEventArgs(oldDesigner, host));
129
if (
_events
?[s_eventDesignerCreated] is DesignerEventHandler eh)
153
if (
_events
?[s_eventDesignerDisposed] is DesignerEventHandler eh)
174
if (
_events
?[s_eventSelectionChanged] is EventHandler eh)
324
[MemberNotNull(nameof(
_events
))]
329
_events
[s_eventActiveDesignerChanged] = Delegate.Combine(
_events
[s_eventActiveDesignerChanged], value);
333
if (
_events
is null)
338
_events
[s_eventActiveDesignerChanged] = Delegate.Remove(
_events
[s_eventActiveDesignerChanged], value);
347
[MemberNotNull(nameof(
_events
))]
352
_events
[s_eventDesignerCreated] = Delegate.Combine(
_events
[s_eventDesignerCreated], value);
356
if (
_events
is null)
361
_events
[s_eventDesignerCreated] = Delegate.Remove(
_events
[s_eventDesignerCreated], value);
370
[MemberNotNull(nameof(
_events
))]
375
_events
[s_eventDesignerDisposed] = Delegate.Combine(
_events
[s_eventDesignerDisposed], value);
379
if (
_events
is null)
384
_events
[s_eventDesignerDisposed] = Delegate.Remove(
_events
[s_eventDesignerDisposed], value);
393
[MemberNotNull(nameof(
_events
))]
398
_events
[s_eventSelectionChanged] = Delegate.Combine(
_events
[s_eventSelectionChanged], value);
402
if (
_events
is null)
407
_events
[s_eventSelectionChanged] = Delegate.Remove(
_events
[s_eventSelectionChanged], value);