1188 references to Events
System.ComponentModel.Primitives (2)
System\ComponentModel\Component.cs (2)
48
add =>
Events
.AddHandler(s_eventDisposed, value);
49
remove =>
Events
.RemoveHandler(s_eventDisposed, value);
System.Data.Common (3)
System\Data\Common\DataAdapter.cs (3)
196
Events
.AddHandler(s_eventFillError, value);
200
Events
.RemoveHandler(s_eventFillError, value);
741
((FillErrorEventHandler?)
Events
[s_eventFillError])?.Invoke(this, value);
System.Data.Odbc (8)
System\Data\Odbc\OdbcDataAdapter.cs (8)
104
Events
.AddHandler(s_eventRowUpdated, value);
108
Events
.RemoveHandler(s_eventRowUpdated, value);
116
OdbcRowUpdatingEventHandler? handler = (OdbcRowUpdatingEventHandler?)
Events
[s_eventRowUpdating];
126
Events
.RemoveHandler(s_eventRowUpdating, d);
129
Events
.AddHandler(s_eventRowUpdating, value);
133
Events
.RemoveHandler(s_eventRowUpdating, value);
155
OdbcRowUpdatedEventHandler? handler = (OdbcRowUpdatedEventHandler?)
Events
[s_eventRowUpdated];
165
OdbcRowUpdatingEventHandler? handler = (OdbcRowUpdatingEventHandler?)
Events
[s_eventRowUpdating];
System.Windows.Forms (1095)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (4)
275
&& owner.
Events
[s_queryAccessibilityHelpEvent] is QueryAccessibilityHelpEventHandler handler)
289
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler);
438
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler handler)
455
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler);
System\Windows\Forms\ContextMenuStrip.cs (2)
53
contextMenuStrip.
Events
.AddHandlers(
Events
);
System\Windows\Forms\Control.cs (211)
735
add =>
Events
.AddHandler(s_autoSizeChangedEvent, value);
736
remove =>
Events
.RemoveHandler(s_autoSizeChangedEvent, value);
922
add =>
Events
.AddHandler(s_backColorEvent, value);
923
remove =>
Events
.RemoveHandler(s_backColorEvent, value);
952
add =>
Events
.AddHandler(s_backgroundImageEvent, value);
953
remove =>
Events
.RemoveHandler(s_backgroundImageEvent, value);
996
add =>
Events
.AddHandler(s_backgroundImageLayoutEvent, value);
997
remove =>
Events
.RemoveHandler(s_backgroundImageLayoutEvent, value);
1079
add =>
Events
.AddHandler(s_bindingContextEvent, value);
1080
remove =>
Events
.RemoveHandler(s_bindingContextEvent, value);
1191
add =>
Events
.AddHandler(s_causesValidationEvent, value);
1192
remove =>
Events
.RemoveHandler(s_causesValidationEvent, value);
1281
add =>
Events
.AddHandler(s_clientSizeEvent, value);
1282
remove =>
Events
.RemoveHandler(s_clientSizeEvent, value);
1354
add =>
Events
.AddHandler(s_contextMenuStripEvent, value);
1355
remove =>
Events
.RemoveHandler(s_contextMenuStripEvent, value);
1607
add =>
Events
.AddHandler(s_cursorEvent, value);
1608
remove =>
Events
.RemoveHandler(s_cursorEvent, value);
1807
add =>
Events
.AddHandler(s_dockEvent, value);
1808
remove =>
Events
.RemoveHandler(s_dockEvent, value);
1875
add =>
Events
.AddHandler(s_enabledEvent, value);
1876
remove =>
Events
.RemoveHandler(s_enabledEvent, value);
1999
add =>
Events
.AddHandler(s_fontEvent, value);
2000
remove =>
Events
.RemoveHandler(s_fontEvent, value);
2138
add =>
Events
.AddHandler(s_foreColorEvent, value);
2139
remove =>
Events
.RemoveHandler(s_foreColorEvent, value);
2523
add =>
Events
.AddHandler(s_locationEvent, value);
2524
remove =>
Events
.RemoveHandler(s_locationEvent, value);
2554
add =>
Events
.AddHandler(s_marginChangedEvent, value);
2555
remove =>
Events
.RemoveHandler(s_marginChangedEvent, value);
2858
add =>
Events
.AddHandler(s_regionChangedEvent, value);
2859
remove =>
Events
.RemoveHandler(s_regionChangedEvent, value);
2986
add =>
Events
.AddHandler(s_rightToLeftEvent, value);
2987
remove =>
Events
.RemoveHandler(s_rightToLeftEvent, value);
3115
add =>
Events
.AddHandler(s_sizeEvent, value);
3116
remove =>
Events
.RemoveHandler(s_sizeEvent, value);
3145
add =>
Events
.AddHandler(s_tabIndexEvent, value);
3146
remove =>
Events
.RemoveHandler(s_tabIndexEvent, value);
3192
add =>
Events
.AddHandler(s_tabStopEvent, value);
3193
remove =>
Events
.RemoveHandler(s_tabStopEvent, value);
3255
add =>
Events
.AddHandler(s_textEvent, value);
3256
remove =>
Events
.RemoveHandler(s_textEvent, value);
3552
add =>
Events
.AddHandler(s_visibleEvent, value);
3553
remove =>
Events
.RemoveHandler(s_visibleEvent, value);
3706
add =>
Events
.AddHandler(s_clickEvent, value);
3707
remove =>
Events
.RemoveHandler(s_clickEvent, value);
3719
add =>
Events
.AddHandler(s_controlAddedEvent, value);
3720
remove =>
Events
.RemoveHandler(s_controlAddedEvent, value);
3732
add =>
Events
.AddHandler(s_controlRemovedEvent, value);
3733
remove =>
Events
.RemoveHandler(s_controlRemovedEvent, value);
3745
add =>
Events
.AddHandler(s_dataContextEvent, value);
3746
remove =>
Events
.RemoveHandler(s_dataContextEvent, value);
3753
add =>
Events
.AddHandler(s_dragDropEvent, value);
3754
remove =>
Events
.RemoveHandler(s_dragDropEvent, value);
3761
add =>
Events
.AddHandler(s_dragEnterEvent, value);
3762
remove =>
Events
.RemoveHandler(s_dragEnterEvent, value);
3769
add =>
Events
.AddHandler(s_dragOverEvent, value);
3770
remove =>
Events
.RemoveHandler(s_dragOverEvent, value);
3777
add =>
Events
.AddHandler(s_dragLeaveEvent, value);
3778
remove =>
Events
.RemoveHandler(s_dragLeaveEvent, value);
3785
add =>
Events
.AddHandler(s_giveFeedbackEvent, value);
3786
remove =>
Events
.RemoveHandler(s_giveFeedbackEvent, value);
3798
add =>
Events
.AddHandler(s_handleCreatedEvent, value);
3799
remove =>
Events
.RemoveHandler(s_handleCreatedEvent, value);
3811
add =>
Events
.AddHandler(s_handleDestroyedEvent, value);
3812
remove =>
Events
.RemoveHandler(s_handleDestroyedEvent, value);
3819
add =>
Events
.AddHandler(s_helpRequestedEvent, value);
3820
remove =>
Events
.RemoveHandler(s_helpRequestedEvent, value);
3829
add =>
Events
.AddHandler(s_invalidatedEvent, value);
3830
remove =>
Events
.RemoveHandler(s_invalidatedEvent, value);
3873
add =>
Events
.AddHandler(s_paddingChangedEvent, value);
3874
remove =>
Events
.RemoveHandler(s_paddingChangedEvent, value);
3881
add =>
Events
.AddHandler(s_paintEvent, value);
3882
remove =>
Events
.RemoveHandler(s_paintEvent, value);
3889
add =>
Events
.AddHandler(s_queryContinueDragEvent, value);
3890
remove =>
Events
.RemoveHandler(s_queryContinueDragEvent, value);
3897
add =>
Events
.AddHandler(s_queryAccessibilityHelpEvent, value);
3898
remove =>
Events
.RemoveHandler(s_queryAccessibilityHelpEvent, value);
3908
add =>
Events
.AddHandler(s_doubleClickEvent, value);
3909
remove =>
Events
.RemoveHandler(s_doubleClickEvent, value);
3919
add =>
Events
.AddHandler(s_enterEvent, value);
3920
remove =>
Events
.RemoveHandler(s_enterEvent, value);
3932
add =>
Events
.AddHandler(s_gotFocusEvent, value);
3933
remove =>
Events
.RemoveHandler(s_gotFocusEvent, value);
3943
add =>
Events
.AddHandler(s_keyDownEvent, value);
3944
remove =>
Events
.RemoveHandler(s_keyDownEvent, value);
3954
add =>
Events
.AddHandler(s_keyPressEvent, value);
3955
remove =>
Events
.RemoveHandler(s_keyPressEvent, value);
3965
add =>
Events
.AddHandler(s_keyUpEvent, value);
3966
remove =>
Events
.RemoveHandler(s_keyUpEvent, value);
3973
add =>
Events
.AddHandler(s_layoutEvent, value);
3974
remove =>
Events
.RemoveHandler(s_layoutEvent, value);
3984
add =>
Events
.AddHandler(s_leaveEvent, value);
3985
remove =>
Events
.RemoveHandler(s_leaveEvent, value);
3997
add =>
Events
.AddHandler(s_lostFocusEvent, value);
3998
remove =>
Events
.RemoveHandler(s_lostFocusEvent, value);
4008
add =>
Events
.AddHandler(s_mouseClickEvent, value);
4009
remove =>
Events
.RemoveHandler(s_mouseClickEvent, value);
4019
add =>
Events
.AddHandler(s_mouseDoubleClickEvent, value);
4020
remove =>
Events
.RemoveHandler(s_mouseDoubleClickEvent, value);
4030
add =>
Events
.AddHandler(s_mouseCaptureChangedEvent, value);
4031
remove =>
Events
.RemoveHandler(s_mouseCaptureChangedEvent, value);
4042
add =>
Events
.AddHandler(s_mouseDownEvent, value);
4043
remove =>
Events
.RemoveHandler(s_mouseDownEvent, value);
4053
add =>
Events
.AddHandler(s_mouseEnterEvent, value);
4054
remove =>
Events
.RemoveHandler(s_mouseEnterEvent, value);
4064
add =>
Events
.AddHandler(s_mouseLeaveEvent, value);
4065
remove =>
Events
.RemoveHandler(s_mouseLeaveEvent, value);
4077
add =>
Events
.AddHandler(s_dpiChangedBeforeParentEvent, value);
4078
remove =>
Events
.RemoveHandler(s_dpiChangedBeforeParentEvent, value);
4090
add =>
Events
.AddHandler(s_dpiChangedAfterParentEvent, value);
4091
remove =>
Events
.RemoveHandler(s_dpiChangedAfterParentEvent, value);
4101
add =>
Events
.AddHandler(s_mouseHoverEvent, value);
4102
remove =>
Events
.RemoveHandler(s_mouseHoverEvent, value);
4112
add =>
Events
.AddHandler(s_mouseMoveEvent, value);
4113
remove =>
Events
.RemoveHandler(s_mouseMoveEvent, value);
4123
add =>
Events
.AddHandler(s_mouseUpEvent, value);
4124
remove =>
Events
.RemoveHandler(s_mouseUpEvent, value);
4136
add =>
Events
.AddHandler(s_mouseWheelEvent, value);
4137
remove =>
Events
.RemoveHandler(s_mouseWheelEvent, value);
4147
add =>
Events
.AddHandler(s_moveEvent, value);
4148
remove =>
Events
.RemoveHandler(s_moveEvent, value);
4158
add =>
Events
.AddHandler(s_previewKeyDownEvent, value);
4159
remove =>
Events
.RemoveHandler(s_previewKeyDownEvent, value);
4170
add =>
Events
.AddHandler(s_resizeEvent, value);
4171
remove =>
Events
.RemoveHandler(s_resizeEvent, value);
4178
add =>
Events
.AddHandler(s_changeUICuesEvent, value);
4179
remove =>
Events
.RemoveHandler(s_changeUICuesEvent, value);
4186
add =>
Events
.AddHandler(s_styleChangedEvent, value);
4187
remove =>
Events
.RemoveHandler(s_styleChangedEvent, value);
4194
add =>
Events
.AddHandler(s_systemColorsChangedEvent, value);
4195
remove =>
Events
.RemoveHandler(s_systemColorsChangedEvent, value);
4205
add =>
Events
.AddHandler(s_validatingEvent, value);
4206
remove =>
Events
.RemoveHandler(s_validatingEvent, value);
4216
add =>
Events
.AddHandler(s_validatedEvent, value);
4217
remove =>
Events
.RemoveHandler(s_validatedEvent, value);
4334
add =>
Events
.AddHandler(s_parentEvent, value);
4335
remove =>
Events
.RemoveHandler(s_parentEvent, value);
5157
((EventHandler?)
Events
[s_handleCreatedEvent])?.Invoke(this, e);
5167
((KeyEventHandler?)
Events
[key])?.Invoke(this, e);
5177
((MouseEventHandler?)
Events
[key])?.Invoke(this, e);
6661
if (
Events
[s_autoSizeChangedEvent] is EventHandler eh)
6690
if (
Events
[s_backColorEvent] is EventHandler eh)
6714
if (
Events
[s_backgroundImageEvent] is EventHandler eh)
6738
if (
Events
[s_backgroundImageLayoutEvent] is EventHandler eh)
6757
if (
Events
[s_bindingContextEvent] is EventHandler eh)
6774
if (
Events
[s_causesValidationEvent] is EventHandler eh)
6792
if (
Events
[s_contextMenuStripEvent] is EventHandler eh)
6801
if (
Events
[s_cursorEvent] is EventHandler eh)
6823
if (
Events
[s_dataContextEvent] is EventHandler eventHandler)
6840
if (
Events
[s_dockEvent] is EventHandler eh)
6872
if (
Events
[s_enabledEvent] is EventHandler eh)
6913
if (
Events
[s_fontEvent] is EventHandler eh)
6943
if (
Events
[s_foreColorEvent] is EventHandler eh)
6971
if (
Events
[s_rightToLeftEvent] is EventHandler eh)
7203
if (
Events
[s_tabIndexEvent] is EventHandler eh)
7212
if (
Events
[s_tabStopEvent] is EventHandler eh)
7221
if (
Events
[s_textEvent] is EventHandler eh)
7253
if (
Events
[s_visibleEvent] is EventHandler eh)
7290
if (
Events
[s_parentEvent] is EventHandler eh)
7309
((EventHandler?)
Events
[s_clickEvent])?.Invoke(this, e);
7315
if (
Events
[s_clientSizeEvent] is EventHandler eh)
7327
((ControlEventHandler?)
Events
[s_controlAddedEvent])?.Invoke(this, e);
7336
((ControlEventHandler?)
Events
[s_controlRemovedEvent])?.Invoke(this, e);
7417
((EventHandler?)
Events
[s_handleCreatedEvent])?.Invoke(this, e);
7505
if (
Events
[s_locationEvent] is EventHandler eh)
7523
((EventHandler?)
Events
[s_handleDestroyedEvent])?.Invoke(this, e);
7580
((EventHandler?)
Events
[s_doubleClickEvent])?.Invoke(this, e);
7595
((DragEventHandler?)
Events
[s_dragEnterEvent])?.Invoke(this, drgevent);
7605
((DragEventHandler?)
Events
[s_dragOverEvent])?.Invoke(this, drgevent);
7615
((EventHandler?)
Events
[s_dragLeaveEvent])?.Invoke(this, e);
7625
((DragEventHandler?)
Events
[s_dragDropEvent])?.Invoke(this, drgevent);
7635
((GiveFeedbackEventHandler?)
Events
[s_giveFeedbackEvent])?.Invoke(this, gfbevent);
7641
((EventHandler?)
Events
[s_enterEvent])?.Invoke(this, e);
7670
((EventHandler?)
Events
[s_gotFocusEvent])?.Invoke(this, e);
7680
HelpEventHandler? handler = (HelpEventHandler?)
Events
[s_helpRequestedEvent];
7718
((InvalidateEventHandler?)
Events
[s_invalidatedEvent])?.Invoke(this, e);
7727
((KeyEventHandler?)
Events
[s_keyDownEvent])?.Invoke(this, e);
7736
((KeyPressEventHandler?)
Events
[s_keyPressEvent])?.Invoke(this, e);
7751
((KeyEventHandler?)
Events
[s_keyUpEvent])?.Invoke(this, e);
7769
((LayoutEventHandler?)
Events
[s_layoutEvent])?.Invoke(this, levent);
7802
((EventHandler?)
Events
[s_leaveEvent])?.Invoke(this, e);
7826
((EventHandler?)
Events
[s_lostFocusEvent])?.Invoke(this, e);
7831
((EventHandler?)
Events
[s_marginChangedEvent])?.Invoke(this, e);
7840
((MouseEventHandler?)
Events
[s_mouseDoubleClickEvent])?.Invoke(this, e);
7849
((MouseEventHandler?)
Events
[s_mouseClickEvent])?.Invoke(this, e);
7858
((EventHandler?)
Events
[s_mouseCaptureChangedEvent])?.Invoke(this, e);
7867
((MouseEventHandler?)
Events
[s_mouseDownEvent])?.Invoke(this, e);
7876
((EventHandler?)
Events
[s_mouseEnterEvent])?.Invoke(this, e);
7885
((EventHandler?)
Events
[s_mouseLeaveEvent])?.Invoke(this, e);
7898
((EventHandler?)
Events
[s_dpiChangedBeforeParentEvent])?.Invoke(this, e);
7911
((EventHandler?)
Events
[s_dpiChangedAfterParentEvent])?.Invoke(this, e);
7920
((EventHandler?)
Events
[s_mouseHoverEvent])?.Invoke(this, e);
7929
((MouseEventHandler?)
Events
[s_mouseMoveEvent])?.Invoke(this, e);
7938
((MouseEventHandler?)
Events
[s_mouseUpEvent])?.Invoke(this, e);
7947
((MouseEventHandler?)
Events
[s_mouseWheelEvent])?.Invoke(this, e);
7956
((EventHandler?)
Events
[s_moveEvent])?.Invoke(this, e);
7971
((PaintEventHandler?)
Events
[s_paintEvent])?.Invoke(this, e);
7981
((EventHandler?)
Events
[s_paddingChangedEvent])?.Invoke(this, e);
8029
((QueryContinueDragEventHandler?)
Events
[s_queryContinueDragEvent])?.Invoke(this, qcdevent);
8038
if (
Events
[s_regionChangedEvent] is EventHandler eh)
8057
((EventHandler?)
Events
[s_resizeEvent])?.Invoke(this, e);
8066
((PreviewKeyDownEventHandler?)
Events
[s_previewKeyDownEvent])?.Invoke(this, e);
8074
if (
Events
[s_sizeEvent] is EventHandler eh)
8086
((UICuesEventHandler?)
Events
[s_changeUICuesEvent])?.Invoke(this, e);
8095
((EventHandler?)
Events
[s_styleChangedEvent])?.Invoke(this, e);
8114
((EventHandler?)
Events
[s_systemColorsChangedEvent])?.Invoke(this, e);
8123
((CancelEventHandler?)
Events
[s_validatingEvent])?.Invoke(this, e);
8132
((EventHandler?)
Events
[s_validatedEvent])?.Invoke(this, e);
9117
((DragEventHandler?)
Events
[key])?.Invoke(this, e);
9127
((PaintEventHandler?)
Events
[s_paintEvent])?.Invoke(this, e);
System\Windows\Forms\Control.Ime.cs (3)
218
add =>
Events
.AddHandler(s_imeModeChangedEvent, value);
219
remove =>
Events
.RemoveHandler(s_imeModeChangedEvent, value);
484
((EventHandler?)
Events
[s_imeModeChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (8)
203
add =>
Events
.AddHandler(s_commandCanExecuteChangedEvent, value);
204
remove =>
Events
.RemoveHandler(s_commandCanExecuteChangedEvent, value);
215
add =>
Events
.AddHandler(s_commandChangedEvent, value);
216
remove =>
Events
.RemoveHandler(s_commandChangedEvent, value);
254
add =>
Events
.AddHandler(s_commandParameterChangedEvent, value);
255
remove =>
Events
.RemoveHandler(s_commandParameterChangedEvent, value);
1109
((EventHandler?)
Events
[s_commandCanExecuteChangedEvent])?.Invoke(this, e);
1275
private void RaiseEvent(object key, EventArgs e) => ((EventHandler?)
Events
[key])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (9)
113
add =>
Events
.AddHandler(s_appearanceChangedEvent, value);
114
remove =>
Events
.RemoveHandler(s_appearanceChangedEvent, value);
374
add =>
Events
.AddHandler(s_checkedChangedEvent, value);
375
remove =>
Events
.RemoveHandler(s_checkedChangedEvent, value);
384
add =>
Events
.AddHandler(s_checkStateChangedEvent, value);
385
remove =>
Events
.RemoveHandler(s_checkStateChangedEvent, value);
392
if (
Events
[s_appearanceChangedEvent] is EventHandler eh)
405
((EventHandler?)
Events
[s_checkedChangedEvent])?.Invoke(this, e);
423
((EventHandler?)
Events
[s_checkStateChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (6)
114
add =>
Events
.AddHandler(s_appearanceChangeEvent, value);
115
remove =>
Events
.RemoveHandler(s_appearanceChangeEvent, value);
335
add =>
Events
.AddHandler(s_checkedChangedEvent, value);
336
remove =>
Events
.RemoveHandler(s_checkedChangedEvent, value);
368
((EventHandler?)
Events
[s_checkedChangedEvent])?.Invoke(this, e);
476
if (
Events
[s_appearanceChangeEvent] is EventHandler eh)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (25)
1237
add =>
Events
.AddHandler(s_drawItemEvent, value);
1238
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
1245
add =>
Events
.AddHandler(s_dropDownEvent, value);
1246
remove =>
Events
.RemoveHandler(s_dropDownEvent, value);
1255
Events
.AddHandler(s_measureItemEvent, value);
1260
Events
.RemoveHandler(s_measureItemEvent, value);
1269
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
1270
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
1277
add =>
Events
.AddHandler(s_selectionChangedComittedEvent, value);
1278
remove =>
Events
.RemoveHandler(s_selectionChangedComittedEvent, value);
1285
add =>
Events
.AddHandler(s_dropDownStyleEvent, value);
1286
remove =>
Events
.RemoveHandler(s_dropDownStyleEvent, value);
1309
add =>
Events
.AddHandler(s_textUpdateEvent, value);
1310
remove =>
Events
.RemoveHandler(s_textUpdateEvent, value);
1321
add =>
Events
.AddHandler(s_dropDownClosedEvent, value);
1322
remove =>
Events
.RemoveHandler(s_dropDownClosedEvent, value);
2409
((DrawItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
2419
((EventHandler?)
Events
[s_dropDownEvent])?.Invoke(this, e);
2516
((MeasureItemEventHandler?)
Events
[s_measureItemEvent])?.Invoke(this, e);
2565
((EventHandler?)
Events
[s_selectionChangedComittedEvent])?.Invoke(this, e);
2584
((EventHandler?)
Events
[s_selectedIndexChangedEvent])?.Invoke(this, e);
2651
((EventHandler?)
Events
[s_selectedItemChangedEvent])?.Invoke(this, e);
2659
((EventHandler?)
Events
[s_dropDownStyleEvent])?.Invoke(this, e);
2876
((EventHandler?)
Events
[s_dropDownClosedEvent])?.Invoke(this, e);
2928
((EventHandler?)
Events
[s_textUpdateEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (236)
674
add =>
Events
.AddHandler(s_allowUserToAddRowsChangedEvent, value);
675
remove =>
Events
.RemoveHandler(s_allowUserToAddRowsChangedEvent, value);
702
add =>
Events
.AddHandler(s_allowUserToDeleteRowsChangedEvent, value);
703
remove =>
Events
.RemoveHandler(s_allowUserToDeleteRowsChangedEvent, value);
729
add =>
Events
.AddHandler(s_allowUserToOrderColumnsChangedEvent, value);
730
remove =>
Events
.RemoveHandler(s_allowUserToOrderColumnsChangedEvent, value);
757
add =>
Events
.AddHandler(s_allowUserToResizeColumnsChangedEvent, value);
758
remove =>
Events
.RemoveHandler(s_allowUserToResizeColumnsChangedEvent, value);
785
add =>
Events
.AddHandler(s_allowUserToResizeRowsChangedEvent, value);
786
remove =>
Events
.RemoveHandler(s_allowUserToResizeRowsChangedEvent, value);
824
add =>
Events
.AddHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value);
825
remove =>
Events
.RemoveHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value);
852
add =>
Events
.AddHandler(s_autoGenerateColumnsChangedEvent, value);
853
remove =>
Events
.RemoveHandler(s_autoGenerateColumnsChangedEvent, value);
932
add =>
Events
.AddHandler(s_autosizeColumnsModeChangedEvent, value);
933
remove =>
Events
.RemoveHandler(s_autosizeColumnsModeChangedEvent, value);
980
add =>
Events
.AddHandler(s_autosizeRowsModeChangedEvent, value);
981
remove =>
Events
.RemoveHandler(s_autosizeRowsModeChangedEvent, value);
1028
add =>
Events
.AddHandler(s_backgroundColorChangedEvent, value);
1029
remove =>
Events
.RemoveHandler(s_backgroundColorChangedEvent, value);
1101
add =>
Events
.AddHandler(s_borderStyleChangedEvent, value);
1102
remove =>
Events
.RemoveHandler(s_borderStyleChangedEvent, value);
1321
add =>
Events
.AddHandler(s_cellBorderStyleChangedEvent, value);
1322
remove =>
Events
.RemoveHandler(s_cellBorderStyleChangedEvent, value);
1506
add =>
Events
.AddHandler(s_columnHeadersBorderStyleChangedEvent, value);
1507
remove =>
Events
.RemoveHandler(s_columnHeadersBorderStyleChangedEvent, value);
1567
add =>
Events
.AddHandler(s_columnHeadersDefaultCellStyleChangedEvent, value);
1568
remove =>
Events
.RemoveHandler(s_columnHeadersDefaultCellStyleChangedEvent, value);
1597
add =>
Events
.AddHandler(s_columnHeadersHeightChangedEvent, value);
1598
remove =>
Events
.RemoveHandler(s_columnHeadersHeightChangedEvent, value);
1632
add =>
Events
.AddHandler(s_columnHeadersHeightSizeModeChangedEvent, value);
1633
remove =>
Events
.RemoveHandler(s_columnHeadersHeightSizeModeChangedEvent, value);
1904
add =>
Events
.AddHandler(s_dataMemberChangedEvent, value);
1905
remove =>
Events
.RemoveHandler(s_dataMemberChangedEvent, value);
1961
add =>
Events
.AddHandler(s_dataSourceChangedEvent, value);
1962
remove =>
Events
.RemoveHandler(s_dataSourceChangedEvent, value);
2081
add =>
Events
.AddHandler(s_defaultCellStyleChangedEvent, value);
2082
remove =>
Events
.RemoveHandler(s_defaultCellStyleChangedEvent, value);
2171
add =>
Events
.AddHandler(s_editModeChangedEvent, value);
2172
remove =>
Events
.RemoveHandler(s_editModeChangedEvent, value);
2664
add =>
Events
.AddHandler(s_gridColorChangedEvent, value);
2665
remove =>
Events
.RemoveHandler(s_gridColorChangedEvent, value);
3012
add =>
Events
.AddHandler(s_multiselectChangedEvent, value);
3013
remove =>
Events
.RemoveHandler(s_multiselectChangedEvent, value);
3136
add =>
Events
.AddHandler(s_readOnlyChangedEvent, value);
3137
remove =>
Events
.RemoveHandler(s_readOnlyChangedEvent, value);
3293
add =>
Events
.AddHandler(s_rowHeadersBorderStyleChangedEvent, value);
3294
remove =>
Events
.RemoveHandler(s_rowHeadersBorderStyleChangedEvent, value);
3332
add =>
Events
.AddHandler(s_rowHeadersDefaultCellStyleChangedEvent, value);
3333
remove =>
Events
.RemoveHandler(s_rowHeadersDefaultCellStyleChangedEvent, value);
3435
add =>
Events
.AddHandler(s_rowHeadersWidthChangedEvent, value);
3436
remove =>
Events
.RemoveHandler(s_rowHeadersWidthChangedEvent, value);
3475
add =>
Events
.AddHandler(s_rowHeadersWidthSizeModeChangedEvent, value);
3476
remove =>
Events
.RemoveHandler(s_rowHeadersWidthSizeModeChangedEvent, value);
3525
add =>
Events
.AddHandler(s_rowsDefaultCellStyleChangedEvent, value);
3526
remove =>
Events
.RemoveHandler(s_rowsDefaultCellStyleChangedEvent, value);
4162
add =>
Events
.AddHandler(s_autosizeColumnModeChangedEvent, value);
4163
remove =>
Events
.RemoveHandler(s_autosizeColumnModeChangedEvent, value);
4170
add =>
Events
.AddHandler(s_cancelRowEditEvent, value);
4171
remove =>
Events
.RemoveHandler(s_cancelRowEditEvent, value);
4178
add =>
Events
.AddHandler(s_cellBeginEditEvent, value);
4179
remove =>
Events
.RemoveHandler(s_cellBeginEditEvent, value);
4186
add =>
Events
.AddHandler(s_cellClickEvent, value);
4187
remove =>
Events
.RemoveHandler(s_cellClickEvent, value);
4194
add =>
Events
.AddHandler(s_cellContentClickEvent, value);
4195
remove =>
Events
.RemoveHandler(s_cellContentClickEvent, value);
4202
add =>
Events
.AddHandler(s_cellContentDoubleClickEvent, value);
4203
remove =>
Events
.RemoveHandler(s_cellContentDoubleClickEvent, value);
4211
add =>
Events
.AddHandler(s_cellContextMenuStripChangedEvent, value);
4212
remove =>
Events
.RemoveHandler(s_cellContextMenuStripChangedEvent, value);
4220
add =>
Events
.AddHandler(s_cellContextMenuStripNeededEvent, value);
4221
remove =>
Events
.RemoveHandler(s_cellContextMenuStripNeededEvent, value);
4228
add =>
Events
.AddHandler(s_cellDoubleClickEvent, value);
4229
remove =>
Events
.RemoveHandler(s_cellDoubleClickEvent, value);
4236
add =>
Events
.AddHandler(s_cellEndEditEvent, value);
4237
remove =>
Events
.RemoveHandler(s_cellEndEditEvent, value);
4244
add =>
Events
.AddHandler(s_cellEnterEvent, value);
4245
remove =>
Events
.RemoveHandler(s_cellEnterEvent, value);
4252
add =>
Events
.AddHandler(s_cellErrorTextChangedEvent, value);
4253
remove =>
Events
.RemoveHandler(s_cellErrorTextChangedEvent, value);
4261
add =>
Events
.AddHandler(s_cellErrorTextNeededEvent, value);
4262
remove =>
Events
.RemoveHandler(s_cellErrorTextNeededEvent, value);
4269
add =>
Events
.AddHandler(s_cellFormattingEvent, value);
4270
remove =>
Events
.RemoveHandler(s_cellFormattingEvent, value);
4277
add =>
Events
.AddHandler(s_cellLeaveEvent, value);
4278
remove =>
Events
.RemoveHandler(s_cellLeaveEvent, value);
4285
add =>
Events
.AddHandler(s_cellMouseClickEvent, value);
4286
remove =>
Events
.RemoveHandler(s_cellMouseClickEvent, value);
4293
add =>
Events
.AddHandler(s_cellMouseDoubleClickEvent, value);
4294
remove =>
Events
.RemoveHandler(s_cellMouseDoubleClickEvent, value);
4301
add =>
Events
.AddHandler(s_cellMouseDownEvent, value);
4302
remove =>
Events
.RemoveHandler(s_cellMouseDownEvent, value);
4309
add =>
Events
.AddHandler(s_cellMouseEnterEvent, value);
4310
remove =>
Events
.RemoveHandler(s_cellMouseEnterEvent, value);
4317
add =>
Events
.AddHandler(s_cellMouseLeaveEvent, value);
4318
remove =>
Events
.RemoveHandler(s_cellMouseLeaveEvent, value);
4325
add =>
Events
.AddHandler(s_cellMouseMoveEvent, value);
4326
remove =>
Events
.RemoveHandler(s_cellMouseMoveEvent, value);
4333
add =>
Events
.AddHandler(s_cellMouseUpEvent, value);
4334
remove =>
Events
.RemoveHandler(s_cellMouseUpEvent, value);
4341
add =>
Events
.AddHandler(s_cellPaintingEvent, value);
4342
remove =>
Events
.RemoveHandler(s_cellPaintingEvent, value);
4349
add =>
Events
.AddHandler(s_cellParsingEvent, value);
4350
remove =>
Events
.RemoveHandler(s_cellParsingEvent, value);
4357
add =>
Events
.AddHandler(s_cellStateChangedEvent, value);
4358
remove =>
Events
.RemoveHandler(s_cellStateChangedEvent, value);
4365
add =>
Events
.AddHandler(s_cellStyleChangedEvent, value);
4366
remove =>
Events
.RemoveHandler(s_cellStyleChangedEvent, value);
4373
add =>
Events
.AddHandler(s_cellStyleContentChangedEvent, value);
4374
remove =>
Events
.RemoveHandler(s_cellStyleContentChangedEvent, value);
4381
add =>
Events
.AddHandler(s_cellTooltipTextChangedEvent, value);
4382
remove =>
Events
.RemoveHandler(s_cellTooltipTextChangedEvent, value);
4390
add =>
Events
.AddHandler(s_cellTooltipTextNeededEvent, value);
4391
remove =>
Events
.RemoveHandler(s_cellTooltipTextNeededEvent, value);
4398
add =>
Events
.AddHandler(s_cellValidatedEvent, value);
4399
remove =>
Events
.RemoveHandler(s_cellValidatedEvent, value);
4406
add =>
Events
.AddHandler(s_cellValidatingEvent, value);
4407
remove =>
Events
.RemoveHandler(s_cellValidatingEvent, value);
4414
add =>
Events
.AddHandler(s_cellValueChangedEvent, value);
4415
remove =>
Events
.RemoveHandler(s_cellValueChangedEvent, value);
4423
add =>
Events
.AddHandler(s_cellValueNeededEvent, value);
4424
remove =>
Events
.RemoveHandler(s_cellValueNeededEvent, value);
4432
add =>
Events
.AddHandler(s_cellValuePushedEvent, value);
4433
remove =>
Events
.RemoveHandler(s_cellValuePushedEvent, value);
4440
add =>
Events
.AddHandler(s_columnAddedEvent, value);
4441
remove =>
Events
.RemoveHandler(s_columnAddedEvent, value);
4448
add =>
Events
.AddHandler(s_columnContextMenuStripChangedEvent, value);
4449
remove =>
Events
.RemoveHandler(s_columnContextMenuStripChangedEvent, value);
4456
add =>
Events
.AddHandler(s_columnDataPropertyNameChangedEvent, value);
4457
remove =>
Events
.RemoveHandler(s_columnDataPropertyNameChangedEvent, value);
4464
add =>
Events
.AddHandler(s_columnDefaultCellStyleChangedEvent, value);
4465
remove =>
Events
.RemoveHandler(s_columnDefaultCellStyleChangedEvent, value);
4472
add =>
Events
.AddHandler(s_columnDisplayIndexChangedEvent, value);
4473
remove =>
Events
.RemoveHandler(s_columnDisplayIndexChangedEvent, value);
4480
add =>
Events
.AddHandler(s_columnDividerDoubleClickEvent, value);
4481
remove =>
Events
.RemoveHandler(s_columnDividerDoubleClickEvent, value);
4488
add =>
Events
.AddHandler(s_columnDividerWidthChangedEvent, value);
4489
remove =>
Events
.RemoveHandler(s_columnDividerWidthChangedEvent, value);
4496
add =>
Events
.AddHandler(s_columnHeaderMouseClickEvent, value);
4497
remove =>
Events
.RemoveHandler(s_columnHeaderMouseClickEvent, value);
4504
add =>
Events
.AddHandler(s_columnHeaderMouseDoubleClickEvent, value);
4505
remove =>
Events
.RemoveHandler(s_columnHeaderMouseDoubleClickEvent, value);
4512
add =>
Events
.AddHandler(s_columnHeaderCellChangedEvent, value);
4513
remove =>
Events
.RemoveHandler(s_columnHeaderCellChangedEvent, value);
4520
add =>
Events
.AddHandler(s_columnMinimumWidthChangedEvent, value);
4521
remove =>
Events
.RemoveHandler(s_columnMinimumWidthChangedEvent, value);
4528
add =>
Events
.AddHandler(s_columnNameChangedEvent, value);
4529
remove =>
Events
.RemoveHandler(s_columnNameChangedEvent, value);
4536
add =>
Events
.AddHandler(s_columnRemovedEvent, value);
4537
remove =>
Events
.RemoveHandler(s_columnRemovedEvent, value);
4544
add =>
Events
.AddHandler(s_columnSortModeChangedEvent, value);
4545
remove =>
Events
.RemoveHandler(s_columnSortModeChangedEvent, value);
4552
add =>
Events
.AddHandler(s_columnStateChangedEvent, value);
4553
remove =>
Events
.RemoveHandler(s_columnStateChangedEvent, value);
4560
add =>
Events
.AddHandler(s_columnTooltipTextChangedEvent, value);
4561
remove =>
Events
.RemoveHandler(s_columnTooltipTextChangedEvent, value);
4568
add =>
Events
.AddHandler(s_columnWidthChangedEvent, value);
4569
remove =>
Events
.RemoveHandler(s_columnWidthChangedEvent, value);
4576
add =>
Events
.AddHandler(s_currentCellChangedEvent, value);
4577
remove =>
Events
.RemoveHandler(s_currentCellChangedEvent, value);
4585
add =>
Events
.AddHandler(s_currentCellDirtyStateChangedEvent, value);
4586
remove =>
Events
.RemoveHandler(s_currentCellDirtyStateChangedEvent, value);
4593
add =>
Events
.AddHandler(s_dataBindingCompleteEvent, value);
4594
remove =>
Events
.RemoveHandler(s_dataBindingCompleteEvent, value);
4601
add =>
Events
.AddHandler(s_dataErrorEvent, value);
4602
remove =>
Events
.RemoveHandler(s_dataErrorEvent, value);
4610
add =>
Events
.AddHandler(s_defaultValuesNeededEvent, value);
4611
remove =>
Events
.RemoveHandler(s_defaultValuesNeededEvent, value);
4618
add =>
Events
.AddHandler(s_editingControlShowingEvent, value);
4619
remove =>
Events
.RemoveHandler(s_editingControlShowingEvent, value);
4626
add =>
Events
.AddHandler(s_newRowNeededEvent, value);
4627
remove =>
Events
.RemoveHandler(s_newRowNeededEvent, value);
4634
add =>
Events
.AddHandler(s_rowContextMenuStripChangedEvent, value);
4635
remove =>
Events
.RemoveHandler(s_rowContextMenuStripChangedEvent, value);
4643
add =>
Events
.AddHandler(s_rowContextMenuStripNeededEvent, value);
4644
remove =>
Events
.RemoveHandler(s_rowContextMenuStripNeededEvent, value);
4651
add =>
Events
.AddHandler(s_rowDefaultCellStyleChangedEvent, value);
4652
remove =>
Events
.RemoveHandler(s_rowDefaultCellStyleChangedEvent, value);
4660
add =>
Events
.AddHandler(s_rowDirtyStateNeededEvent, value);
4661
remove =>
Events
.RemoveHandler(s_rowDirtyStateNeededEvent, value);
4668
add =>
Events
.AddHandler(s_rowDividerDoubleClickEvent, value);
4669
remove =>
Events
.RemoveHandler(s_rowDividerDoubleClickEvent, value);
4676
add =>
Events
.AddHandler(s_rowDividerHeightChangedEvent, value);
4677
remove =>
Events
.RemoveHandler(s_rowDividerHeightChangedEvent, value);
4684
add =>
Events
.AddHandler(s_rowEnterEvent, value);
4685
remove =>
Events
.RemoveHandler(s_rowEnterEvent, value);
4692
add =>
Events
.AddHandler(s_rowErrorTextChangedEvent, value);
4693
remove =>
Events
.RemoveHandler(s_rowErrorTextChangedEvent, value);
4701
add =>
Events
.AddHandler(s_rowErrorTextNeededEvent, value);
4702
remove =>
Events
.RemoveHandler(s_rowErrorTextNeededEvent, value);
4709
add =>
Events
.AddHandler(s_rowHeaderMouseClickEvent, value);
4710
remove =>
Events
.RemoveHandler(s_rowHeaderMouseClickEvent, value);
4717
add =>
Events
.AddHandler(s_rowHeaderMouseDoubleClickEvent, value);
4718
remove =>
Events
.RemoveHandler(s_rowHeaderMouseDoubleClickEvent, value);
4725
add =>
Events
.AddHandler(s_rowHeaderCellChangedEvent, value);
4726
remove =>
Events
.RemoveHandler(s_rowHeaderCellChangedEvent, value);
4733
add =>
Events
.AddHandler(s_rowHeightChangedEvent, value);
4734
remove =>
Events
.RemoveHandler(s_rowHeightChangedEvent, value);
4742
add =>
Events
.AddHandler(s_rowHeightInfoNeededEvent, value);
4743
remove =>
Events
.RemoveHandler(s_rowHeightInfoNeededEvent, value);
4761
add =>
Events
.AddHandler(s_rowHeightInfoPushedEvent, value);
4762
remove =>
Events
.RemoveHandler(s_rowHeightInfoPushedEvent, value);
4769
add =>
Events
.AddHandler(s_rowLeaveEvent, value);
4770
remove =>
Events
.RemoveHandler(s_rowLeaveEvent, value);
4777
add =>
Events
.AddHandler(s_rowMinimumHeightChangeEvent, value);
4778
remove =>
Events
.RemoveHandler(s_rowMinimumHeightChangeEvent, value);
4785
add =>
Events
.AddHandler(s_rowPostPaintEvent, value);
4786
remove =>
Events
.RemoveHandler(s_rowPostPaintEvent, value);
4803
add =>
Events
.AddHandler(s_rowPrePaintEvent, value);
4804
remove =>
Events
.RemoveHandler(s_rowPrePaintEvent, value);
4821
add =>
Events
.AddHandler(s_rowsAddedEvent, value);
4822
remove =>
Events
.RemoveHandler(s_rowsAddedEvent, value);
4829
add =>
Events
.AddHandler(s_rowsRemovedEvent, value);
4830
remove =>
Events
.RemoveHandler(s_rowsRemovedEvent, value);
4837
add =>
Events
.AddHandler(s_rowStateChangedEvent, value);
4838
remove =>
Events
.RemoveHandler(s_rowStateChangedEvent, value);
4846
add =>
Events
.AddHandler(s_rowUnsharedEvent, value);
4847
remove =>
Events
.RemoveHandler(s_rowUnsharedEvent, value);
4854
add =>
Events
.AddHandler(s_rowValidatedEvent, value);
4855
remove =>
Events
.RemoveHandler(s_rowValidatedEvent, value);
4862
add =>
Events
.AddHandler(s_rowValidatingEvent, value);
4863
remove =>
Events
.RemoveHandler(s_rowValidatingEvent, value);
4870
add =>
Events
.AddHandler(s_scrollEvent, value);
4871
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
4878
add =>
Events
.AddHandler(s_selectionChangedEvent, value);
4879
remove =>
Events
.RemoveHandler(s_selectionChangedEvent, value);
4887
add =>
Events
.AddHandler(s_sortCompareEvent, value);
4888
remove =>
Events
.RemoveHandler(s_sortCompareEvent, value);
4895
add =>
Events
.AddHandler(s_sortedEvent, value);
4896
remove =>
Events
.RemoveHandler(s_sortedEvent, value);
4911
add =>
Events
.AddHandler(s_userAddedRowEvent, value);
4912
remove =>
Events
.RemoveHandler(s_userAddedRowEvent, value);
4919
add =>
Events
.AddHandler(s_userDeletedRowEvent, value);
4920
remove =>
Events
.RemoveHandler(s_userDeletedRowEvent, value);
4927
add =>
Events
.AddHandler(s_userDeletingRowEvent, value);
4928
remove =>
Events
.RemoveHandler(s_userDeletingRowEvent, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
14612
if (
Events
[s_dataErrorEvent] is not DataGridViewDataErrorEventHandler eh)
14661
if (
Events
[s_rowStateChangedEvent] is DataGridViewRowStateChangedEventHandler
30107
_dataGridViewOper[OperationInDispose] || IsDisposed ? null :
Events
[staticEvent] as T;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
535
add =>
Events
.AddHandler(s_formatChangedEvent, value);
536
remove =>
Events
.RemoveHandler(s_formatChangedEvent, value);
1080
if (
Events
[s_formatChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\Labels\Label.cs (3)
731
add =>
Events
.AddHandler(s_eventTextAlignChanged, value);
732
remove =>
Events
.RemoveHandler(s_eventTextAlignChanged, value);
1235
if (
Events
[s_eventTextAlignChanged] is EventHandler eh)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
368
add =>
Events
.AddHandler(s_eventLinkClicked, value);
369
remove =>
Events
.RemoveHandler(s_eventLinkClicked, value);
957
((LinkLabelLinkClickedEventHandler?)
Events
[s_eventLinkClicked])?.Invoke(this, e);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (9)
1232
add =>
Events
.AddHandler(s_drawItemEvent, value);
1233
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
1240
add =>
Events
.AddHandler(s_measureItemEvent, value);
1241
remove =>
Events
.RemoveHandler(s_measureItemEvent, value);
1248
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
1249
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
1732
((DrawItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
1819
((MeasureItemEventHandler?)
Events
[s_measureItemEvent])?.Invoke(this, e);
1905
((EventHandler?)
Events
[s_selectedIndexChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ListControl\ListControl.cs (24)
93
add =>
Events
.AddHandler(s_dataSourceChangedEvent, value);
94
remove =>
Events
.RemoveHandler(s_dataSourceChangedEvent, value);
130
add =>
Events
.AddHandler(s_displayMemberChangedEvent, value);
131
remove =>
Events
.RemoveHandler(s_displayMemberChangedEvent, value);
169
Events
.AddHandler(s_formatEvent, value);
174
Events
.RemoveHandler(s_formatEvent, value);
202
add =>
Events
.AddHandler(s_formatInfoChangedEvent, value);
203
remove =>
Events
.RemoveHandler(s_formatInfoChangedEvent, value);
230
add =>
Events
.AddHandler(s_formatStringChangedEvent, value);
231
remove =>
Events
.RemoveHandler(s_formatStringChangedEvent, value);
254
add =>
Events
.AddHandler(s_formattingEnabledChangedEvent, value);
255
remove =>
Events
.RemoveHandler(s_formattingEnabledChangedEvent, value);
335
add =>
Events
.AddHandler(s_valueMemberChangedEvent, value);
336
remove =>
Events
.RemoveHandler(s_valueMemberChangedEvent, value);
389
add =>
Events
.AddHandler(s_selectedValueChangedEvent, value);
390
remove =>
Events
.RemoveHandler(s_selectedValueChangedEvent, value);
597
EventHandler? eh =
Events
[s_dataSourceChangedEvent] as EventHandler;
603
EventHandler? eh =
Events
[s_displayMemberChangedEvent] as EventHandler;
609
ListControlConvertEventHandler? eh =
Events
[s_formatEvent] as ListControlConvertEventHandler;
615
EventHandler? eh =
Events
[s_formatInfoChangedEvent] as EventHandler;
621
EventHandler? eh =
Events
[s_formatStringChangedEvent] as EventHandler;
627
EventHandler? eh =
Events
[s_formattingEnabledChangedEvent] as EventHandler;
645
EventHandler? eh =
Events
[s_valueMemberChangedEvent] as EventHandler;
651
EventHandler? eh =
Events
[s_selectedValueChangedEvent] as EventHandler;
System\Windows\Forms\Controls\ListView\ListView.cs (45)
1352
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
1353
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
1972
add =>
Events
.AddHandler(s_cacheVirtualItemsEvent, value);
1973
remove =>
Events
.RemoveHandler(s_cacheVirtualItemsEvent, value);
1991
add =>
Events
.AddHandler(s_groupTaskLinkClickEvent, value);
1992
remove =>
Events
.RemoveHandler(s_groupTaskLinkClickEvent, value);
2002
add =>
Events
.AddHandler(s_columnReorderedEvent, value);
2003
remove =>
Events
.RemoveHandler(s_columnReorderedEvent, value);
2013
add =>
Events
.AddHandler(s_columnWidthChangedEvent, value);
2014
remove =>
Events
.RemoveHandler(s_columnWidthChangedEvent, value);
2024
add =>
Events
.AddHandler(s_columnWidthChangingEvent, value);
2025
remove =>
Events
.RemoveHandler(s_columnWidthChangingEvent, value);
2035
add =>
Events
.AddHandler(s_drawColumnHeaderEvent, value);
2036
remove =>
Events
.RemoveHandler(s_drawColumnHeaderEvent, value);
2046
add =>
Events
.AddHandler(s_drawItemEvent, value);
2047
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
2057
add =>
Events
.AddHandler(s_drawSubItemEvent, value);
2058
remove =>
Events
.RemoveHandler(s_drawSubItemEvent, value);
2105
add =>
Events
.AddHandler(s_itemSelectionChangedEvent, value);
2106
remove =>
Events
.RemoveHandler(s_itemSelectionChangedEvent, value);
2116
add =>
Events
.AddHandler(s_groupCollapsedStateChangedEvent, value);
2117
remove =>
Events
.RemoveHandler(s_groupCollapsedStateChangedEvent, value);
2152
add =>
Events
.AddHandler(s_retrieveVirtualItemEvent, value);
2153
remove =>
Events
.RemoveHandler(s_retrieveVirtualItemEvent, value);
2160
add =>
Events
.AddHandler(s_searchForVirtualItemEvent, value);
2161
remove =>
Events
.RemoveHandler(s_searchForVirtualItemEvent, value);
2168
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
2169
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
2176
add =>
Events
.AddHandler(s_virtualItemSelectionRangeChangedEvent, value);
2177
remove =>
Events
.RemoveHandler(s_virtualItemSelectionRangeChangedEvent, value);
4411
((CacheVirtualItemsEventHandler?)
Events
[s_cacheVirtualItemsEvent])?.Invoke(this, e);
4434
((EventHandler<ListViewGroupEventArgs>?)
Events
[s_groupCollapsedStateChangedEvent])?.Invoke(this, e);
4450
((EventHandler<ListViewGroupEventArgs>?)
Events
[s_groupTaskLinkClickEvent])?.Invoke(this, e);
4458
((ColumnReorderedEventHandler?)
Events
[s_columnReorderedEvent])?.Invoke(this, e);
4466
((ColumnWidthChangedEventHandler?)
Events
[s_columnWidthChangedEvent])?.Invoke(this, e);
4474
((ColumnWidthChangingEventHandler?)
Events
[s_columnWidthChangingEvent])?.Invoke(this, e);
4482
((DrawListViewColumnHeaderEventHandler?)
Events
[s_drawColumnHeaderEvent])?.Invoke(this, e);
4490
((DrawListViewItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
4498
((DrawListViewSubItemEventHandler?)
Events
[s_drawSubItemEvent])?.Invoke(this, e);
4830
((ListViewItemSelectionChangedEventHandler?)
Events
[s_itemSelectionChangedEvent])?.Invoke(this, e);
4858
((RetrieveVirtualItemEventHandler?)
Events
[s_retrieveVirtualItemEvent])?.Invoke(this, e);
4874
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
4885
((SearchForVirtualItemEventHandler?)
Events
[s_searchForVirtualItemEvent])?.Invoke(this, e);
4897
((EventHandler?)
Events
[s_selectedIndexChangedEvent])?.Invoke(this, e);
4935
((ListViewVirtualItemsSelectionRangeChangedEventHandler?)
Events
[s_virtualItemSelectionRangeChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (6)
98
add =>
Events
.AddHandler(s_menuActivateEvent, value);
99
remove =>
Events
.RemoveHandler(s_menuActivateEvent, value);
106
add =>
Events
.AddHandler(s_menuDeactivateEvent, value);
107
remove =>
Events
.RemoveHandler(s_menuDeactivateEvent, value);
178
((EventHandler?)
Events
[s_menuActivateEvent])?.Invoke(this, e);
194
((EventHandler?)
Events
[s_menuDeactivateEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (9)
750
add =>
Events
.AddHandler(s_loadCompletedKey, value);
751
remove =>
Events
.RemoveHandler(s_loadCompletedKey, value);
758
add =>
Events
.AddHandler(s_loadProgressChangedKey, value);
759
remove =>
Events
.RemoveHandler(s_loadProgressChangedKey, value);
857
add =>
Events
.AddHandler(s_sizeModeChangedEvent, value);
858
remove =>
Events
.RemoveHandler(s_sizeModeChangedEvent, value);
1092
((AsyncCompletedEventHandler?)(
Events
[s_loadCompletedKey]))?.Invoke(this, e);
1095
((ProgressChangedEventHandler?)(
Events
[s_loadProgressChangedKey]))?.Invoke(this, e);
1169
if (
Events
[s_sizeModeChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (18)
1403
add =>
Events
.AddHandler(s_propertyValueChangedEvent, value);
1404
remove =>
Events
.RemoveHandler(s_propertyValueChangedEvent, value);
1409
add =>
Events
.AddHandler(s_comComponentNameChangedEvent, value);
1410
remove =>
Events
.RemoveHandler(s_comComponentNameChangedEvent, value);
1420
add =>
Events
.AddHandler(s_propertyTabChangedEvent, value);
1421
remove =>
Events
.RemoveHandler(s_propertyTabChangedEvent, value);
1431
add =>
Events
.AddHandler(s_propertySortChangedEvent, value);
1432
remove =>
Events
.RemoveHandler(s_propertySortChangedEvent, value);
1442
add =>
Events
.AddHandler(s_selectedGridItemChangedEvent, value);
1443
remove =>
Events
.RemoveHandler(s_selectedGridItemChangedEvent, value);
1450
add =>
Events
.AddHandler(s_selectedObjectsChangedEvent, value);
1451
remove =>
Events
.RemoveHandler(s_selectedObjectsChangedEvent, value);
2877
((ComponentRenameEventHandler?)
Events
[s_comComponentNameChangedEvent])?.Invoke(this, e);
2925
((EventHandler?)
Events
[s_propertySortChangedEvent])?.Invoke(this, e);
2930
((PropertyTabChangedEventHandler?)
Events
[s_propertyTabChangedEvent])?.Invoke(this, e);
2935
((PropertyValueChangedEventHandler?)
Events
[s_propertyValueChangedEvent])?.Invoke(this, e);
2975
((SelectedGridItemChangedEventHandler?)
Events
[s_selectedGridItemChangedEvent])?.Invoke(this, e);
2980
((EventHandler?)
Events
[s_selectedObjectsChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (21)
1487
add =>
Events
.AddHandler(s_requestSizeEvent, value);
1488
remove =>
Events
.RemoveHandler(s_requestSizeEvent, value);
1549
add =>
Events
.AddHandler(s_hscrollEvent, value);
1550
remove =>
Events
.RemoveHandler(s_hscrollEvent, value);
1557
add =>
Events
.AddHandler(s_linkActivateEvent, value);
1558
remove =>
Events
.RemoveHandler(s_linkActivateEvent, value);
1565
add =>
Events
.AddHandler(s_imeChangeEvent, value);
1566
remove =>
Events
.RemoveHandler(s_imeChangeEvent, value);
1573
add =>
Events
.AddHandler(s_protectedEvent, value);
1574
remove =>
Events
.RemoveHandler(s_protectedEvent, value);
1581
add =>
Events
.AddHandler(s_selectionChangeEvent, value);
1582
remove =>
Events
.RemoveHandler(s_selectionChangeEvent, value);
1589
add =>
Events
.AddHandler(s_vscrollEvent, value);
1590
remove =>
Events
.RemoveHandler(s_vscrollEvent, value);
2388
((ContentsResizedEventHandler?)
Events
[s_requestSizeEvent])?.Invoke(this, e);
2528
((EventHandler?)
Events
[s_hscrollEvent])?.Invoke(this, e);
2536
((LinkClickedEventHandler?)
Events
[s_linkActivateEvent])?.Invoke(this, e);
2544
((EventHandler?)
Events
[s_imeChangeEvent])?.Invoke(this, e);
2554
((EventHandler?)
Events
[s_protectedEvent])?.Invoke(this, e);
2563
((EventHandler?)
Events
[s_selectionChangeEvent])?.Invoke(this, e);
2572
((EventHandler?)
Events
[s_vscrollEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
504
add =>
Events
.AddHandler(s_movingEvent, value);
505
remove =>
Events
.RemoveHandler(s_movingEvent, value);
512
add =>
Events
.AddHandler(s_movedEvent, value);
513
remove =>
Events
.RemoveHandler(s_movedEvent, value);
845
((SplitterEventHandler?)
Events
[s_movingEvent])?.Invoke(this, sevent);
860
((SplitterEventHandler?)
Events
[s_movedEvent])?.Invoke(this, sevent);
System\Windows\Forms\Controls\TabControl\TabControl.cs (15)
852
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
853
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
871
add =>
Events
.AddHandler(s_selectingEvent, value);
872
remove =>
Events
.RemoveHandler(s_selectingEvent, value);
882
add =>
Events
.AddHandler(s_selectedEvent, value);
883
remove =>
Events
.RemoveHandler(s_selectedEvent, value);
893
add =>
Events
.AddHandler(s_deselectingEvent, value);
894
remove =>
Events
.RemoveHandler(s_deselectingEvent, value);
904
add =>
Events
.AddHandler(s_deselectedEvent, value);
905
remove =>
Events
.RemoveHandler(s_deselectedEvent, value);
1447
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
1476
((TabControlCancelEventHandler?)
Events
[s_selectingEvent])?.Invoke(this, e);
1484
((TabControlEventHandler?)
Events
[s_selectedEvent])?.Invoke(this, e);
1495
((TabControlCancelEventHandler?)
Events
[s_deselectingEvent])?.Invoke(this, e);
1503
((TabControlEventHandler?)
Events
[s_deselectedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (15)
585
add =>
Events
.AddHandler(s_isOverwriteModeChangedEvent, value);
586
remove =>
Events
.RemoveHandler(s_isOverwriteModeChangedEvent, value);
726
add =>
Events
.AddHandler(s_maskChangedEvent, value);
727
remove =>
Events
.RemoveHandler(s_maskChangedEvent, value);
777
add =>
Events
.AddHandler(s_maskInputRejectedEvent, value);
778
remove =>
Events
.RemoveHandler(s_maskInputRejectedEvent, value);
1264
add =>
Events
.AddHandler(s_textAlignChangedEvent, value);
1266
remove =>
Events
.RemoveHandler(s_textAlignChangedEvent, value);
1374
add =>
Events
.AddHandler(s_validationCompletedEvent, value);
1375
remove =>
Events
.RemoveHandler(s_validationCompletedEvent, value);
1829
if (
Events
[s_isOverwriteModeChangedEvent] is EventHandler eh)
2047
if (
Events
[s_maskChangedEvent] is EventHandler eh)
2066
if (
Events
[s_maskInputRejectedEvent] is MaskInputRejectedEventHandler eh)
2100
if (
Events
[s_textAlignChangedEvent] is EventHandler eh)
2111
if (
Events
[s_validationCompletedEvent] is TypeValidationEventHandler eh)
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
502
add =>
Events
.AddHandler(s_textAlignChangedEvent, value);
503
remove =>
Events
.RemoveHandler(s_textAlignChangedEvent, value);
670
if (
Events
[s_textAlignChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (18)
137
add =>
Events
.AddHandler(s_acceptsTabChangedEvent, value);
138
remove =>
Events
.RemoveHandler(s_acceptsTabChangedEvent, value);
376
add =>
Events
.AddHandler(s_borderStyleChangedEvent, value);
377
remove =>
Events
.RemoveHandler(s_borderStyleChangedEvent, value);
542
add =>
Events
.AddHandler(s_hideSelectionChangedEvent, value);
543
remove =>
Events
.RemoveHandler(s_hideSelectionChangedEvent, value);
704
add =>
Events
.AddHandler(s_modifiedChangedEvent, value);
705
remove =>
Events
.RemoveHandler(s_modifiedChangedEvent, value);
754
add =>
Events
.AddHandler(s_multilineChangedEvent, value);
755
remove =>
Events
.RemoveHandler(s_multilineChangedEvent, value);
964
add =>
Events
.AddHandler(s_readOnlyChangedEvent, value);
965
remove =>
Events
.RemoveHandler(s_readOnlyChangedEvent, value);
1440
if (
Events
[s_acceptsTabChangedEvent] is EventHandler eh)
1448
if (
Events
[s_borderStyleChangedEvent] is EventHandler eh)
1462
if (
Events
[s_hideSelectionChangedEvent] is EventHandler eh)
1470
if (
Events
[s_modifiedChangedEvent] is EventHandler eh)
1507
if (
Events
[s_multilineChangedEvent] is EventHandler eh)
1521
if (
Events
[s_readOnlyChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (30)
374
add =>
Events
.AddHandler(s_eventBeginDrag, value);
375
remove =>
Events
.RemoveHandler(s_eventBeginDrag, value);
511
add =>
Events
.AddHandler(s_eventEndDrag, value);
512
remove =>
Events
.RemoveHandler(s_eventEndDrag, value);
1056
add =>
Events
.AddHandler(s_eventItemAdded, value);
1057
remove =>
Events
.RemoveHandler(s_eventItemAdded, value);
1067
add =>
Events
.AddHandler(s_eventItemClicked, value);
1068
remove =>
Events
.RemoveHandler(s_eventItemClicked, value);
1099
add =>
Events
.AddHandler(s_eventItemRemoved, value);
1100
remove =>
Events
.RemoveHandler(s_eventItemRemoved, value);
1263
add =>
Events
.AddHandler(s_eventLayoutCompleted, value);
1264
remove =>
Events
.RemoveHandler(s_eventLayoutCompleted, value);
1273
add =>
Events
.AddHandler(s_eventLayoutStyleChanged, value);
1274
remove =>
Events
.RemoveHandler(s_eventLayoutStyleChanged, value);
1287
add =>
Events
.AddHandler(s_eventLocationChanging, value);
1288
remove =>
Events
.RemoveHandler(s_eventLocationChanging, value);
1386
add =>
Events
.AddHandler(s_eventPaintGrip, value);
1387
remove =>
Events
.RemoveHandler(s_eventPaintGrip, value);
1537
add =>
Events
.AddHandler(s_eventRendererChanged, value);
1538
remove =>
Events
.RemoveHandler(s_eventRendererChanged, value);
3115
((EventHandler?)
Events
[s_eventBeginDrag])?.Invoke(this, e);
3121
((EventHandler?)
Events
[s_eventEndDrag])?.Invoke(this, e);
3133
((EventHandler?)
Events
[s_eventRendererChanged])?.Invoke(this, e);
3206
((ToolStripItemEventHandler?)
Events
[s_eventItemAdded])?.Invoke(this, e);
3214
((ToolStripItemClickedEventHandler?)
Events
[s_eventItemClicked])?.Invoke(this, e);
3222
((ToolStripItemEventHandler?)
Events
[s_eventItemRemoved])?.Invoke(this, e);
3276
((EventHandler?)
Events
[s_eventLayoutCompleted])?.Invoke(this, e);
3281
((EventHandler?)
Events
[s_eventLayoutStyleChanged])?.Invoke(this, e);
3302
((ToolStripLocationCancelEventHandler?)
Events
[s_eventLocationChanging])?.Invoke(this, e);
3689
((PaintEventHandler?)
Events
[s_eventPaintGrip])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (6)
120
add =>
Events
.AddHandler(s_checkedChangedEvent, value);
121
remove =>
Events
.RemoveHandler(s_checkedChangedEvent, value);
130
add =>
Events
.AddHandler(s_checkStateChangedEvent, value);
131
remove =>
Events
.RemoveHandler(s_checkStateChangedEvent, value);
179
=> ((EventHandler?)
Events
[s_checkedChangedEvent])?.Invoke(this, e);
194
((EventHandler?)
Events
[s_checkStateChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (10)
123
add =>
Events
.AddHandler(s_eventDropDown, value);
124
remove =>
Events
.RemoveHandler(s_eventDropDown, value);
131
add =>
Events
.AddHandler(s_eventDropDownClosed, value);
132
remove =>
Events
.RemoveHandler(s_eventDropDownClosed, value);
139
add =>
Events
.AddHandler(s_eventDropDownStyleChanged, value);
140
remove =>
Events
.RemoveHandler(s_eventDropDownStyleChanged, value);
250
add =>
Events
.AddHandler(s_eventSelectedIndexChanged, value);
251
remove =>
Events
.RemoveHandler(s_eventSelectedIndexChanged, value);
304
add =>
Events
.AddHandler(s_eventTextUpdate, value);
305
remove =>
Events
.RemoveHandler(s_eventTextUpdate, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (6)
158
add =>
Events
.AddHandler(s_loadEvent, value);
159
remove =>
Events
.RemoveHandler(s_loadEvent, value);
289
add =>
Events
.AddHandler(s_rendererChangedEvent, value);
290
remove =>
Events
.RemoveHandler(s_rendererChangedEvent, value);
312
((EventHandler?)
Events
[s_loadEvent])?.Invoke(this, e);
347
((EventHandler?)
Events
[s_rendererChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (21)
170
add =>
Events
.AddHandler(s_displayStyleChangedEvent, value);
171
remove =>
Events
.RemoveHandler(s_displayStyleChangedEvent, value);
205
add =>
Events
.AddHandler(s_enterEvent, value);
206
remove =>
Events
.RemoveHandler(s_enterEvent, value);
225
add =>
Events
.AddHandler(s_gotFocusEvent, value);
226
remove =>
Events
.RemoveHandler(s_gotFocusEvent, value);
269
add =>
Events
.AddHandler(s_leaveEvent, value);
270
remove =>
Events
.RemoveHandler(s_leaveEvent, value);
282
add =>
Events
.AddHandler(s_lostFocusEvent, value);
283
remove =>
Events
.RemoveHandler(s_lostFocusEvent, value);
293
add =>
Events
.AddHandler(s_keyDownEvent, value);
294
remove =>
Events
.RemoveHandler(s_keyDownEvent, value);
304
add =>
Events
.AddHandler(s_keyPressEvent, value);
305
remove =>
Events
.RemoveHandler(s_keyPressEvent, value);
315
add =>
Events
.AddHandler(s_keyUpEvent, value);
316
remove =>
Events
.RemoveHandler(s_keyUpEvent, value);
438
add =>
Events
.AddHandler(s_validatingEvent, value);
439
remove =>
Events
.RemoveHandler(s_validatingEvent, value);
446
add =>
Events
.AddHandler(s_validatedEvent, value);
447
remove =>
Events
.RemoveHandler(s_validatedEvent, value);
562
((QueryAccessibilityHelpEventHandler?)
Events
[s_queryAccessibilityHelpEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (12)
334
add =>
Events
.AddHandler(s_closedEvent, value);
335
remove =>
Events
.RemoveHandler(s_closedEvent, value);
342
add =>
Events
.AddHandler(s_closingEvent, value);
343
remove =>
Events
.RemoveHandler(s_closingEvent, value);
533
add =>
Events
.AddHandler(s_openingEvent, value);
534
remove =>
Events
.RemoveHandler(s_openingEvent, value);
544
add =>
Events
.AddHandler(s_openedEvent, value);
545
remove =>
Events
.RemoveHandler(s_openedEvent, value);
1101
((ToolStripDropDownClosedEventHandler?)
Events
[s_closedEvent])?.Invoke(this, e);
1106
((ToolStripDropDownClosingEventHandler?)
Events
[s_closingEvent])?.Invoke(this, e);
1150
((CancelEventHandler?)
Events
[s_openingEvent])?.Invoke(this, e);
1155
((EventHandler?)
Events
[s_openedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (13)
201
add =>
Events
.AddHandler(s_dropDownClosedEvent, value);
202
remove =>
Events
.RemoveHandler(s_dropDownClosedEvent, value);
223
add =>
Events
.AddHandler(s_dropDownShowEvent, value);
224
remove =>
Events
.RemoveHandler(s_dropDownShowEvent, value);
234
add =>
Events
.AddHandler(s_dropDownOpenedEvent, value);
235
remove =>
Events
.RemoveHandler(s_dropDownOpenedEvent, value);
253
add =>
Events
.AddHandler(s_dropDownItemClickedEvent, value);
254
remove =>
Events
.RemoveHandler(s_dropDownItemClickedEvent, value);
473
((EventHandler?)
Events
[s_dropDownHideEvent])?.Invoke(this, e);
481
((EventHandler?)
Events
[s_dropDownShowEvent])?.Invoke(this, e);
496
((EventHandler?)
Events
[s_dropDownOpenedEvent])?.Invoke(this, e);
525
((EventHandler?)
Events
[s_dropDownClosedEvent])?.Invoke(this, e);
550
((ToolStripItemClickedEventHandler?)
Events
[s_dropDownItemClickedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (71)
377
add =>
Events
.AddHandler(s_availableChangedEvent, value);
378
remove =>
Events
.RemoveHandler(s_availableChangedEvent, value);
424
add =>
Events
.AddHandler(s_commandCanExecuteChangedEvent, value);
425
remove =>
Events
.RemoveHandler(s_commandCanExecuteChangedEvent, value);
436
add =>
Events
.AddHandler(s_commandChangedEvent, value);
437
remove =>
Events
.RemoveHandler(s_commandChangedEvent, value);
476
add =>
Events
.AddHandler(s_commandParameterChangedEvent, value);
477
remove =>
Events
.RemoveHandler(s_commandParameterChangedEvent, value);
543
add =>
Events
.AddHandler(s_backColorChangedEvent, value);
544
remove =>
Events
.RemoveHandler(s_backColorChangedEvent, value);
595
add =>
Events
.AddHandler(s_clickEvent, value);
596
remove =>
Events
.RemoveHandler(s_clickEvent, value);
727
add =>
Events
.AddHandler(s_displayStyleChangedEvent, value);
728
remove =>
Events
.RemoveHandler(s_displayStyleChangedEvent, value);
741
add =>
Events
.AddHandler(s_doubleClickEvent, value);
742
remove =>
Events
.RemoveHandler(s_doubleClickEvent, value);
760
add =>
Events
.AddHandler(s_dragDropEvent, value);
761
remove =>
Events
.RemoveHandler(s_dragDropEvent, value);
770
add =>
Events
.AddHandler(s_dragEnterEvent, value);
771
remove =>
Events
.RemoveHandler(s_dragEnterEvent, value);
780
add =>
Events
.AddHandler(s_dragOverEvent, value);
781
remove =>
Events
.RemoveHandler(s_dragOverEvent, value);
790
add =>
Events
.AddHandler(s_dragLeaveEvent, value);
791
remove =>
Events
.RemoveHandler(s_dragLeaveEvent, value);
843
add =>
Events
.AddHandler(s_enabledChangedEvent, value);
844
remove =>
Events
.RemoveHandler(s_enabledChangedEvent, value);
849
add =>
Events
.AddHandler(s_internalEnabledChangedEvent, value);
850
remove =>
Events
.RemoveHandler(s_internalEnabledChangedEvent, value);
897
add =>
Events
.AddHandler(s_foreColorChangedEvent, value);
898
remove =>
Events
.RemoveHandler(s_foreColorChangedEvent, value);
941
add =>
Events
.AddHandler(s_giveFeedbackEvent, value);
942
remove =>
Events
.RemoveHandler(s_giveFeedbackEvent, value);
1259
add =>
Events
.AddHandler(s_locationChangedEvent, value);
1260
remove =>
Events
.RemoveHandler(s_locationChangedEvent, value);
1323
add =>
Events
.AddHandler(s_mouseDownEvent, value);
1324
remove =>
Events
.RemoveHandler(s_mouseDownEvent, value);
1334
add =>
Events
.AddHandler(s_mouseEnterEvent, value);
1335
remove =>
Events
.RemoveHandler(s_mouseEnterEvent, value);
1345
add =>
Events
.AddHandler(s_mouseLeaveEvent, value);
1346
remove =>
Events
.RemoveHandler(s_mouseLeaveEvent, value);
1356
add =>
Events
.AddHandler(s_mouseHoverEvent, value);
1357
remove =>
Events
.RemoveHandler(s_mouseHoverEvent, value);
1367
add =>
Events
.AddHandler(s_mouseMoveEvent, value);
1368
remove =>
Events
.RemoveHandler(s_mouseMoveEvent, value);
1378
add =>
Events
.AddHandler(s_mouseUpEvent, value);
1379
remove =>
Events
.RemoveHandler(s_mouseUpEvent, value);
1458
add =>
Events
.AddHandler(s_ownerChangedEvent, value);
1459
remove =>
Events
.RemoveHandler(s_ownerChangedEvent, value);
1466
add =>
Events
.AddHandler(s_paintEvent, value);
1467
remove =>
Events
.RemoveHandler(s_paintEvent, value);
1599
add =>
Events
.AddHandler(s_queryContinueDragEvent, value);
1600
remove =>
Events
.RemoveHandler(s_queryContinueDragEvent, value);
1607
add =>
Events
.AddHandler(s_queryAccessibilityHelpEvent, value);
1608
remove =>
Events
.RemoveHandler(s_queryAccessibilityHelpEvent, value);
1740
add =>
Events
.AddHandler(s_rightToLeftChangedEvent, value);
1741
remove =>
Events
.RemoveHandler(s_rightToLeftChangedEvent, value);
1787
add =>
Events
.AddHandler(s_selectedChangedEvent, value);
1788
remove =>
Events
.RemoveHandler(s_selectedChangedEvent, value);
1899
add =>
Events
.AddHandler(s_textChangedEvent, value);
1900
remove =>
Events
.RemoveHandler(s_textChangedEvent, value);
1998
add =>
Events
.AddHandler(s_visibleChangedEvent, value);
1999
remove =>
Events
.RemoveHandler(s_visibleChangedEvent, value);
2703
=> ((EventHandler?)
Events
[s_commandCanExecuteChangedEvent])?.Invoke(this, e);
2778
=> ((GiveFeedbackEventHandler?)
Events
[s_giveFeedbackEvent])?.Invoke(this, giveFeedbackEvent);
3078
internal void RaiseCancelEvent(object key, CancelEventArgs e) => ((CancelEventHandler?)
Events
[key])?.Invoke(this, e);
3080
internal void RaiseDragEvent(object key, DragEventArgs e) => ((DragEventHandler?)
Events
[key])?.Invoke(this, e);
3082
internal void RaiseKeyEvent(object key, KeyEventArgs e) => ((KeyEventHandler?)
Events
[key])?.Invoke(this, e);
3084
internal void RaiseKeyPressEvent(object key, KeyPressEventArgs e) => ((KeyPressEventHandler?)
Events
[key])?.Invoke(this, e);
3086
internal void RaiseMouseEvent(object key, MouseEventArgs e) => ((MouseEventHandler?)
Events
[key])?.Invoke(this, e);
3088
internal void RaisePaintEvent(object key, PaintEventArgs e) => ((PaintEventHandler?)
Events
[key])?.Invoke(this, e);
3091
((QueryContinueDragEventHandler?)
Events
[key])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (4)
55
QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.
Events
[s_queryAccessibilityHelpEvent];
68
=> IsInternal && (QueryAccessibilityHelpEventHandler?)Owner.
Events
[s_queryAccessibilityHelpEvent] is null;
210
QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.
Events
[s_queryAccessibilityHelpEvent];
227
internal override bool CanGetHelpTopicInternal => IsInternal && Owner.
Events
[s_queryAccessibilityHelpEvent] is null;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (8)
323
add =>
Events
.AddHandler(s_eventCheckedChanged, value);
324
remove =>
Events
.RemoveHandler(s_eventCheckedChanged, value);
333
add =>
Events
.AddHandler(s_eventCheckStateChanged, value);
334
remove =>
Events
.RemoveHandler(s_eventCheckStateChanged, value);
487
menuItem.
Events
.AddHandlers(
Events
);
801
((EventHandler?)
Events
[s_eventCheckedChanged])?.Invoke(this, e);
810
((EventHandler?)
Events
[s_eventCheckStateChanged])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
260
add =>
Events
.AddHandler(s_eventRendererChanged, value);
261
remove =>
Events
.RemoveHandler(s_eventRendererChanged, value);
560
((EventHandler?)
Events
[s_eventRendererChanged])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (2)
331
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
332
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (9)
118
add =>
Events
.AddHandler(s_eventButtonClick, value);
119
remove =>
Events
.RemoveHandler(s_eventButtonClick, value);
129
add =>
Events
.AddHandler(s_eventButtonDoubleClick, value);
130
remove =>
Events
.RemoveHandler(s_eventButtonDoubleClick, value);
166
add =>
Events
.AddHandler(s_eventDefaultItemChanged, value);
167
remove =>
Events
.RemoveHandler(s_eventDefaultItemChanged, value);
391
((EventHandler?)
Events
[s_eventButtonClick])?.Invoke(this, e);
401
((EventHandler?)
Events
[s_eventButtonDoubleClick])?.Invoke(this, e);
412
if (
Events
[s_eventDefaultItemChanged] is EventHandler eh)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (14)
379
add =>
Events
.AddHandler(s_eventAcceptsTabChanged, value);
380
remove =>
Events
.RemoveHandler(s_eventAcceptsTabChanged, value);
387
add =>
Events
.AddHandler(s_eventBorderStyleChanged, value);
388
remove =>
Events
.RemoveHandler(s_eventBorderStyleChanged, value);
395
add =>
Events
.AddHandler(s_eventHideSelectionChanged, value);
396
remove =>
Events
.RemoveHandler(s_eventHideSelectionChanged, value);
403
add =>
Events
.AddHandler(s_eventModifiedChanged, value);
404
remove =>
Events
.RemoveHandler(s_eventModifiedChanged, value);
413
add =>
Events
.AddHandler(s_eventMultilineChanged, value);
414
remove =>
Events
.RemoveHandler(s_eventMultilineChanged, value);
421
add =>
Events
.AddHandler(s_eventReadOnlyChanged, value);
422
remove =>
Events
.RemoveHandler(s_eventReadOnlyChanged, value);
429
add =>
Events
.AddHandler(s_eventTextBoxTextAlignChanged, value);
430
remove =>
Events
.RemoveHandler(s_eventTextBoxTextAlignChanged, value);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (9)
664
add =>
Events
.AddHandler(s_rightToLeftChangedEvent, value);
665
remove =>
Events
.RemoveHandler(s_rightToLeftChangedEvent, value);
672
add =>
Events
.AddHandler(s_scrollEvent, value);
673
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
688
add =>
Events
.AddHandler(s_valueChangedEvent, value);
689
remove =>
Events
.RemoveHandler(s_valueChangedEvent, value);
892
if (
Events
[s_rightToLeftChangedEvent] is EventHandler eh)
905
((EventHandler?)
Events
[s_scrollEvent])?.Invoke(this, e);
987
((EventHandler?)
Events
[s_valueChangedEvent])?.Invoke(this, e);
System\Windows\Forms\DataBinding\BindableComponent.cs (3)
49
add =>
Events
.AddHandler(s_bindingContextChangedEvent, value);
50
remove =>
Events
.RemoveHandler(s_bindingContextChangedEvent, value);
81
=> ((EventHandler?)
Events
[key])?.Invoke(this, e);
System\Windows\Forms\DataBinding\BindingSource.cs (30)
395
add =>
Events
.AddHandler(s_eventAddingNew, value);
396
remove =>
Events
.RemoveHandler(s_eventAddingNew, value);
403
add =>
Events
.AddHandler(s_eventBindingComplete, value);
404
remove =>
Events
.RemoveHandler(s_eventBindingComplete, value);
411
add =>
Events
.AddHandler(s_eventDataError, value);
412
remove =>
Events
.RemoveHandler(s_eventDataError, value);
419
add =>
Events
.AddHandler(s_eventDataSourceChanged, value);
420
remove =>
Events
.RemoveHandler(s_eventDataSourceChanged, value);
427
add =>
Events
.AddHandler(s_eventDataMemberChanged, value);
428
remove =>
Events
.RemoveHandler(s_eventDataMemberChanged, value);
435
add =>
Events
.AddHandler(s_eventCurrentChanged, value);
436
remove =>
Events
.RemoveHandler(s_eventCurrentChanged, value);
443
add =>
Events
.AddHandler(s_eventCurrentItemChanged, value);
444
remove =>
Events
.RemoveHandler(s_eventCurrentItemChanged, value);
451
add =>
Events
.AddHandler(s_eventListChanged, value);
452
remove =>
Events
.RemoveHandler(s_eventListChanged, value);
459
add =>
Events
.AddHandler(s_eventPositionChanged, value);
460
remove =>
Events
.RemoveHandler(s_eventPositionChanged, value);
793
AddingNewEventHandler? eh = (AddingNewEventHandler?)
Events
[s_eventAddingNew];
799
BindingCompleteEventHandler? eh = (BindingCompleteEventHandler?)
Events
[s_eventBindingComplete];
812
EventHandler? eh = (EventHandler?)
Events
[s_eventCurrentChanged];
818
EventHandler? eh = (EventHandler?)
Events
[s_eventCurrentItemChanged];
824
BindingManagerDataErrorEventHandler? eh =
Events
[s_eventDataError] as BindingManagerDataErrorEventHandler;
830
EventHandler? eh =
Events
[s_eventDataMemberChanged] as EventHandler;
836
EventHandler? eh =
Events
[s_eventDataSourceChanged] as EventHandler;
848
ListChangedEventHandler? eh = (ListChangedEventHandler?)
Events
[s_eventListChanged];
854
EventHandler? eh = (EventHandler?)
Events
[s_eventPositionChanged];
1411
add =>
Events
.AddHandler(s_eventInitialized, value);
1412
remove =>
Events
.RemoveHandler(s_eventInitialized, value);
1417
EventHandler? eh = (EventHandler?)
Events
[s_eventInitialized];
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (3)
50
add =>
Events
.AddHandler(s_helpRequestEvent, value);
51
remove =>
Events
.RemoveHandler(s_helpRequestEvent, value);
113
EventHandler? handler = (EventHandler?)
Events
[s_helpRequestEvent];
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (3)
378
add =>
Events
.AddHandler(EventFileOk, value);
379
remove =>
Events
.RemoveHandler(EventFileOk, value);
605
CancelEventHandler? handler = (CancelEventHandler?)
Events
[EventFileOk];
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (3)
289
add =>
Events
.AddHandler(EventApply, value);
290
remove =>
Events
.RemoveHandler(EventApply, value);
361
protected virtual void OnApply(EventArgs e) => (
Events
[EventApply] as EventHandler)?.Invoke(this, e);
System\Windows\Forms\Form.cs (75)
988
add =>
Events
.AddHandler(s_helpButtonChangedEvent, value);
989
remove =>
Events
.RemoveHandler(s_helpButtonChangedEvent, value);
1172
add =>
Events
.AddHandler(s_maximizeBoundsChangedEvent, value);
1173
remove =>
Events
.RemoveHandler(s_maximizeBoundsChangedEvent, value);
1247
add =>
Events
.AddHandler(s_maximumSizeChangedEvent, value);
1248
remove =>
Events
.RemoveHandler(s_maximumSizeChangedEvent, value);
1378
add =>
Events
.AddHandler(s_minimumSizeChangedEvent, value);
1379
remove =>
Events
.RemoveHandler(s_minimumSizeChangedEvent, value);
2302
if (
Events
[s_formCornerPreferenceChanged] is EventHandler eventHandler)
2380
if (
Events
[s_formBorderColorChanged] is EventHandler eventHandler)
2441
if (
Events
[s_formCaptionBackColorChanged] is EventHandler eventHandler)
2502
if (
Events
[s_formCaptionTextColorChanged] is EventHandler eventHandler)
2611
add =>
Events
.AddHandler(s_activatedEvent, value);
2612
remove =>
Events
.RemoveHandler(s_activatedEvent, value);
2629
add =>
Events
.AddHandler(s_closingEvent, value);
2630
remove =>
Events
.RemoveHandler(s_closingEvent, value);
2647
add =>
Events
.AddHandler(s_closedEvent, value);
2648
remove =>
Events
.RemoveHandler(s_closedEvent, value);
2658
add =>
Events
.AddHandler(s_deactivateEvent, value);
2659
remove =>
Events
.RemoveHandler(s_deactivateEvent, value);
2669
add =>
Events
.AddHandler(s_formClosingEvent, value);
2670
remove =>
Events
.RemoveHandler(s_formClosingEvent, value);
2680
add =>
Events
.AddHandler(s_formBorderColorChanged, value);
2681
remove =>
Events
.RemoveHandler(s_formBorderColorChanged, value);
2691
add =>
Events
.AddHandler(s_formCaptionBackColorChanged, value);
2692
remove =>
Events
.RemoveHandler(s_formCaptionBackColorChanged, value);
2702
add =>
Events
.AddHandler(s_formCaptionTextColorChanged, value);
2703
remove =>
Events
.RemoveHandler(s_formCaptionTextColorChanged, value);
2713
add =>
Events
.AddHandler(s_formCornerPreferenceChanged, value);
2714
remove =>
Events
.RemoveHandler(s_formCornerPreferenceChanged, value);
2724
add =>
Events
.AddHandler(s_formClosedEvent, value);
2725
remove =>
Events
.RemoveHandler(s_formClosedEvent, value);
2735
add =>
Events
.AddHandler(s_loadEvent, value);
2736
remove =>
Events
.RemoveHandler(s_loadEvent, value);
2747
add =>
Events
.AddHandler(s_mdiChildActivateEvent, value);
2748
remove =>
Events
.RemoveHandler(s_mdiChildActivateEvent, value);
2759
add =>
Events
.AddHandler(s_menuCompleteEvent, value);
2760
remove =>
Events
.RemoveHandler(s_menuCompleteEvent, value);
2771
add =>
Events
.AddHandler(s_menuStartEvent, value);
2772
remove =>
Events
.RemoveHandler(s_menuStartEvent, value);
2782
add =>
Events
.AddHandler(s_inputLanguageChangeEvent, value);
2783
remove =>
Events
.RemoveHandler(s_inputLanguageChangeEvent, value);
2794
add =>
Events
.AddHandler(s_inputLanguageChangeRequestEvent, value);
2795
remove =>
Events
.RemoveHandler(s_inputLanguageChangeRequestEvent, value);
2802
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
2803
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
2813
add =>
Events
.AddHandler(s_shownEvent, value);
2814
remove =>
Events
.RemoveHandler(s_shownEvent, value);
3991
((EventHandler?)
Events
[s_activatedEvent])?.Invoke(this, e);
4043
((CancelEventHandler?)
Events
[s_closingEvent])?.Invoke(this, e);
4057
((EventHandler?)
Events
[s_closedEvent])?.Invoke(this, e);
4066
((FormClosingEventHandler?)
Events
[s_formClosingEvent])?.Invoke(this, e);
4080
((FormClosedEventHandler?)
Events
[s_formClosedEvent])?.Invoke(this, e);
4120
((EventHandler?)
Events
[s_deactivateEvent])?.Invoke(this, e);
4239
((CancelEventHandler?)
Events
[s_helpButtonChangedEvent])?.Invoke(this, e);
4300
EventHandler? handler = (EventHandler?)
Events
[s_loadEvent];
4331
if (
Events
[s_maximizeBoundsChangedEvent] is EventHandler eh)
4340
if (
Events
[s_maximumSizeChangedEvent] is EventHandler eh)
4349
if (
Events
[s_minimumSizeChangedEvent] is EventHandler eh)
4362
((InputLanguageChangedEventHandler?)
Events
[s_inputLanguageChangeEvent])?.Invoke(this, e);
4372
((InputLanguageChangingEventHandler?)
Events
[s_inputLanguageChangeRequestEvent])?.Invoke(this, e);
4412
((EventHandler?)
Events
[s_mdiChildActivateEvent])?.Invoke(this, e);
4421
EventHandler? handler = (EventHandler?)
Events
[s_menuStartEvent];
4431
((EventHandler?)
Events
[s_menuCompleteEvent])?.Invoke(this, e);
4503
((DpiChangedEventHandler?)
Events
[s_dpiChangedEvent])?.Invoke(this, e);
4552
add =>
Events
.AddHandler(s_dpiChangedEvent, value);
4553
remove =>
Events
.RemoveHandler(s_dpiChangedEvent, value);
4641
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
4662
((EventHandler?)
Events
[s_shownEvent])?.Invoke(this, e);
5039
add =>
Events
.AddHandler(s_resizeBeginEvent, value);
5040
remove =>
Events
.RemoveHandler(s_resizeBeginEvent, value);
5050
add =>
Events
.AddHandler(s_resizeEndEvent, value);
5051
remove =>
Events
.RemoveHandler(s_resizeEndEvent, value);
6405
((EventHandler?)
Events
[s_resizeBeginEvent])?.Invoke(this, e);
6418
((EventHandler?)
Events
[s_resizeEndEvent])?.Invoke(this, e);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
896
add =>
Events
.AddHandler(s_eventMoving, value);
897
remove =>
Events
.RemoveHandler(s_eventMoving, value);
904
add =>
Events
.AddHandler(s_eventMoved, value);
905
remove =>
Events
.RemoveHandler(s_eventMoved, value);
1227
((SplitterCancelEventHandler?)
Events
[s_eventMoving])?.Invoke(this, e);
1237
((SplitterEventHandler?)
Events
[s_eventMoved])?.Invoke(this, e);
System\Windows\Forms\NotifyIcon.cs (30)
152
add =>
Events
.AddHandler(s_balloonTipClickedEvent, value);
154
remove =>
Events
.RemoveHandler(s_balloonTipClickedEvent, value);
164
add =>
Events
.AddHandler(s_balloonTipClosedEvent, value);
166
remove =>
Events
.RemoveHandler(s_balloonTipClosedEvent, value);
176
add =>
Events
.AddHandler(s_balloonTipShownEvent, value);
177
remove =>
Events
.RemoveHandler(s_balloonTipShownEvent, value);
304
add =>
Events
.AddHandler(s_clickEvent, value);
305
remove =>
Events
.RemoveHandler(s_clickEvent, value);
315
add =>
Events
.AddHandler(s_doubleClickEvent, value);
316
remove =>
Events
.RemoveHandler(s_doubleClickEvent, value);
326
add =>
Events
.AddHandler(s_mouseClickEvent, value);
327
remove =>
Events
.RemoveHandler(s_mouseClickEvent, value);
337
add =>
Events
.AddHandler(s_mouseDoubleClickEvent, value);
338
remove =>
Events
.RemoveHandler(s_mouseDoubleClickEvent, value);
349
add =>
Events
.AddHandler(s_mouseDownEvent, value);
350
remove =>
Events
.RemoveHandler(s_mouseDownEvent, value);
361
add =>
Events
.AddHandler(s_mouseMoveEvent, value);
362
remove =>
Events
.RemoveHandler(s_mouseMoveEvent, value);
374
add =>
Events
.AddHandler(s_mouseUpEvent, value);
375
remove =>
Events
.RemoveHandler(s_mouseUpEvent, value);
419
((EventHandler?)
Events
[s_balloonTipClickedEvent])?.Invoke(this, EventArgs.Empty);
427
((EventHandler?)
Events
[s_balloonTipClosedEvent])?.Invoke(this, EventArgs.Empty);
435
((EventHandler?)
Events
[s_balloonTipShownEvent])?.Invoke(this, EventArgs.Empty);
447
((EventHandler?)
Events
[s_clickEvent])?.Invoke(this, e);
456
((EventHandler?)
Events
[s_doubleClickEvent])?.Invoke(this, e);
465
((MouseEventHandler?)
Events
[s_mouseClickEvent])?.Invoke(this, mea);
474
((MouseEventHandler?)
Events
[s_mouseDoubleClickEvent])?.Invoke(this, mea);
484
((MouseEventHandler?)
Events
[s_mouseDownEvent])?.Invoke(this, e);
493
((MouseEventHandler?)
Events
[s_mouseMoveEvent])?.Invoke(this, e);
502
((MouseEventHandler?)
Events
[s_mouseUpEvent])?.Invoke(this, e);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (3)
310
add =>
Events
.AddHandler(s_eventCellPaint, value);
311
remove =>
Events
.RemoveHandler(s_eventCellPaint, value);
327
((TableLayoutCellPaintEventHandler?)
Events
[s_eventCellPaint])?.Invoke(this, e);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
236
add =>
Events
.AddHandler(s_startPageChangedEvent, value);
237
remove =>
Events
.RemoveHandler(s_startPageChangedEvent, value);
242
if (
Events
[s_startPageChangedEvent] is EventHandler eh)
System\Windows\Forms\Scrolling\ScrollableControl.cs (4)
686
((EventHandler?)
Events
[s_paddingChangedEvent])?.Invoke(this, e);
915
add =>
Events
.AddHandler(s_scrollEvent, value);
916
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
924
((ScrollEventHandler?)
Events
[s_scrollEvent])?.Invoke(this, se);
System\Windows\Forms\Scrolling\ScrollBar.cs (6)
452
add =>
Events
.AddHandler(s_scrollEvent, value);
453
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
465
add =>
Events
.AddHandler(s_valueChangedEvent, value);
466
remove =>
Events
.RemoveHandler(s_valueChangedEvent, value);
517
=> ((ScrollEventHandler?)
Events
[s_scrollEvent])?.Invoke(this, se);
572
=> ((EventHandler?)
Events
[s_valueChangedEvent])?.Invoke(this, e);
System\Windows\Forms\UserControl.cs (3)
195
add =>
Events
.AddHandler(s_loadEvent, value);
196
remove =>
Events
.RemoveHandler(s_loadEvent, value);
276
((EventHandler?)
Events
[s_loadEvent])?.Invoke(this, e);
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.cs (6)
195
add =>
Events
.AddHandler(s_eventFormActivated, value);
196
remove =>
Events
.RemoveHandler(s_eventFormActivated, value);
204
add =>
Events
.AddHandler(s_eventFormDeactivate, value);
205
remove =>
Events
.RemoveHandler(s_eventFormDeactivate, value);
426
((EventHandler?)
Events
[s_eventFormActivated])?.Invoke(sender, e);
444
((EventHandler?)
Events
[s_eventFormDeactivate])?.Invoke(sender, e);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
1040
public new EventHandlerList Events => base.
Events
;
System.Windows.Forms.Tests (73)
System\Windows\Forms\AxHostTests.cs (1)
3198
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\BindingSourceTests.cs (1)
875
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ButtonBaseTests.cs (1)
9301
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ButtonTests.cs (1)
3717
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\CheckBoxTests.cs (1)
664
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ColorDialogTests.cs (1)
371
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ColumnHeaderTests.cs (1)
1663
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ComboBoxTests.cs (1)
2853
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\CommonDialogTests.cs (1)
275
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ContainerControlTests.cs (1)
1443
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ControlTests.cs (1)
1176
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2136
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\DateTimePickerTests.cs (1)
1038
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
412
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
915
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\EventsTabTests.cs (9)
148
add =>
Events
.AddHandler(nameof(ActiveDesignerChanged), value);
149
remove =>
Events
.RemoveHandler(nameof(ActiveDesignerChanged), value);
154
add =>
Events
.AddHandler(nameof(DesignerCreated), value);
155
remove =>
Events
.RemoveHandler(nameof(DesignerCreated), value);
160
add =>
Events
.AddHandler(nameof(DesignerDisposed), value);
161
remove =>
Events
.RemoveHandler(nameof(DesignerDisposed), value);
166
add =>
Events
.AddHandler(nameof(SelectionChanged), value);
167
remove =>
Events
.RemoveHandler(nameof(SelectionChanged), value);
172
ActiveDesignerEventHandler handler = (ActiveDesignerEventHandler)
Events
[nameof(ActiveDesignerChanged)];
System\Windows\Forms\DomainUpDownTests.cs (1)
1502
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ErrorProviderTests.cs (1)
1371
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FileDialogTests.cs (1)
834
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
462
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FontDialogTests.cs (1)
760
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FormTests.cs (1)
2823
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\GroupBoxTests.cs (1)
2327
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\HelpProviderTests.cs (1)
570
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\HScrollBarTests.cs (1)
276
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\LabelTests.cs (1)
911
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListBoxTests.cs (1)
6434
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListControlTests.cs (1)
2942
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListViewTests.cs (1)
6129
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\MdiControlStripTests.cs (1)
392
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\MenuStripTests.cs (1)
888
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\MonthCalendarTests.cs (1)
4758
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PanelTests.cs (1)
1184
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PictureBoxTests.cs (1)
2870
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ProgressBarTests.cs (1)
2614
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PropertyGridTests.cs (1)
4272
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\RadioButtonTests.cs (1)
1557
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\RichTextBoxTests.cs (1)
10954
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ScrollableControlTests.cs (1)
2602
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ScrollBarTests.cs (1)
3190
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\SplitterTests.cs (1)
2335
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\StatusStripTests.cs (1)
1310
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TabControlTests.cs (1)
5778
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2201
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TabPageTests.cs (1)
5265
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripButtonTests.cs (1)
1738
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2046
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4657
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
527
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5128
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripItemTests.cs (1)
15515
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
443
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripPanelTests.cs (1)
389
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
1649
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripTests.cs (1)
7540
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolTipTests.cs (1)
923
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TreeViewTests.cs (1)
7602
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\UpDownBaseTests.cs (1)
3137
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\UserControlTests.cs (1)
1827
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\VScrollBarTests.cs (1)
266
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\WebBrowserTests.cs (1)
4696
public new EventHandlerList Events => base.
Events
;
TextBoxBaseTests.cs (1)
7713
public new EventHandlerList Events => base.
Events
;
TextBoxTests.cs (1)
711
public new EventHandlerList Events => base.
Events
;
TrackBarTests.cs (1)
3308
public new EventHandlerList Events => base.
Events
;
WebBrowserBaseTests.cs (1)
916
public new EventHandlerList Events => base.
Events
;