1169 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 (1077)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (4)
276
&& owner.
Events
[s_queryAccessibilityHelpEvent] is QueryAccessibilityHelpEventHandler handler)
290
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler);
439
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler handler)
456
|| owner.
Events
[s_queryAccessibilityHelpEvent] is not QueryAccessibilityHelpEventHandler);
System\Windows\Forms\ContextMenuStrip.cs (2)
53
contextMenuStrip.
Events
.AddHandlers(
Events
);
System\Windows\Forms\Control.cs (211)
641
add =>
Events
.AddHandler(s_autoSizeChangedEvent, value);
642
remove =>
Events
.RemoveHandler(s_autoSizeChangedEvent, value);
828
add =>
Events
.AddHandler(s_backColorEvent, value);
829
remove =>
Events
.RemoveHandler(s_backColorEvent, value);
858
add =>
Events
.AddHandler(s_backgroundImageEvent, value);
859
remove =>
Events
.RemoveHandler(s_backgroundImageEvent, value);
902
add =>
Events
.AddHandler(s_backgroundImageLayoutEvent, value);
903
remove =>
Events
.RemoveHandler(s_backgroundImageLayoutEvent, value);
985
add =>
Events
.AddHandler(s_bindingContextEvent, value);
986
remove =>
Events
.RemoveHandler(s_bindingContextEvent, value);
1097
add =>
Events
.AddHandler(s_causesValidationEvent, value);
1098
remove =>
Events
.RemoveHandler(s_causesValidationEvent, value);
1187
add =>
Events
.AddHandler(s_clientSizeEvent, value);
1188
remove =>
Events
.RemoveHandler(s_clientSizeEvent, value);
1260
add =>
Events
.AddHandler(s_contextMenuStripEvent, value);
1261
remove =>
Events
.RemoveHandler(s_contextMenuStripEvent, value);
1513
add =>
Events
.AddHandler(s_cursorEvent, value);
1514
remove =>
Events
.RemoveHandler(s_cursorEvent, value);
1713
add =>
Events
.AddHandler(s_dockEvent, value);
1714
remove =>
Events
.RemoveHandler(s_dockEvent, value);
1781
add =>
Events
.AddHandler(s_enabledEvent, value);
1782
remove =>
Events
.RemoveHandler(s_enabledEvent, value);
1905
add =>
Events
.AddHandler(s_fontEvent, value);
1906
remove =>
Events
.RemoveHandler(s_fontEvent, value);
2044
add =>
Events
.AddHandler(s_foreColorEvent, value);
2045
remove =>
Events
.RemoveHandler(s_foreColorEvent, value);
2429
add =>
Events
.AddHandler(s_locationEvent, value);
2430
remove =>
Events
.RemoveHandler(s_locationEvent, value);
2460
add =>
Events
.AddHandler(s_marginChangedEvent, value);
2461
remove =>
Events
.RemoveHandler(s_marginChangedEvent, value);
2764
add =>
Events
.AddHandler(s_regionChangedEvent, value);
2765
remove =>
Events
.RemoveHandler(s_regionChangedEvent, value);
2892
add =>
Events
.AddHandler(s_rightToLeftEvent, value);
2893
remove =>
Events
.RemoveHandler(s_rightToLeftEvent, value);
3021
add =>
Events
.AddHandler(s_sizeEvent, value);
3022
remove =>
Events
.RemoveHandler(s_sizeEvent, value);
3051
add =>
Events
.AddHandler(s_tabIndexEvent, value);
3052
remove =>
Events
.RemoveHandler(s_tabIndexEvent, value);
3098
add =>
Events
.AddHandler(s_tabStopEvent, value);
3099
remove =>
Events
.RemoveHandler(s_tabStopEvent, value);
3161
add =>
Events
.AddHandler(s_textEvent, value);
3162
remove =>
Events
.RemoveHandler(s_textEvent, value);
3458
add =>
Events
.AddHandler(s_visibleEvent, value);
3459
remove =>
Events
.RemoveHandler(s_visibleEvent, value);
3612
add =>
Events
.AddHandler(s_clickEvent, value);
3613
remove =>
Events
.RemoveHandler(s_clickEvent, value);
3625
add =>
Events
.AddHandler(s_controlAddedEvent, value);
3626
remove =>
Events
.RemoveHandler(s_controlAddedEvent, value);
3638
add =>
Events
.AddHandler(s_controlRemovedEvent, value);
3639
remove =>
Events
.RemoveHandler(s_controlRemovedEvent, value);
3651
add =>
Events
.AddHandler(s_dataContextEvent, value);
3652
remove =>
Events
.RemoveHandler(s_dataContextEvent, value);
3659
add =>
Events
.AddHandler(s_dragDropEvent, value);
3660
remove =>
Events
.RemoveHandler(s_dragDropEvent, value);
3667
add =>
Events
.AddHandler(s_dragEnterEvent, value);
3668
remove =>
Events
.RemoveHandler(s_dragEnterEvent, value);
3675
add =>
Events
.AddHandler(s_dragOverEvent, value);
3676
remove =>
Events
.RemoveHandler(s_dragOverEvent, value);
3683
add =>
Events
.AddHandler(s_dragLeaveEvent, value);
3684
remove =>
Events
.RemoveHandler(s_dragLeaveEvent, value);
3691
add =>
Events
.AddHandler(s_giveFeedbackEvent, value);
3692
remove =>
Events
.RemoveHandler(s_giveFeedbackEvent, value);
3704
add =>
Events
.AddHandler(s_handleCreatedEvent, value);
3705
remove =>
Events
.RemoveHandler(s_handleCreatedEvent, value);
3717
add =>
Events
.AddHandler(s_handleDestroyedEvent, value);
3718
remove =>
Events
.RemoveHandler(s_handleDestroyedEvent, value);
3725
add =>
Events
.AddHandler(s_helpRequestedEvent, value);
3726
remove =>
Events
.RemoveHandler(s_helpRequestedEvent, value);
3735
add =>
Events
.AddHandler(s_invalidatedEvent, value);
3736
remove =>
Events
.RemoveHandler(s_invalidatedEvent, value);
3779
add =>
Events
.AddHandler(s_paddingChangedEvent, value);
3780
remove =>
Events
.RemoveHandler(s_paddingChangedEvent, value);
3787
add =>
Events
.AddHandler(s_paintEvent, value);
3788
remove =>
Events
.RemoveHandler(s_paintEvent, value);
3795
add =>
Events
.AddHandler(s_queryContinueDragEvent, value);
3796
remove =>
Events
.RemoveHandler(s_queryContinueDragEvent, value);
3803
add =>
Events
.AddHandler(s_queryAccessibilityHelpEvent, value);
3804
remove =>
Events
.RemoveHandler(s_queryAccessibilityHelpEvent, value);
3814
add =>
Events
.AddHandler(s_doubleClickEvent, value);
3815
remove =>
Events
.RemoveHandler(s_doubleClickEvent, value);
3825
add =>
Events
.AddHandler(s_enterEvent, value);
3826
remove =>
Events
.RemoveHandler(s_enterEvent, value);
3838
add =>
Events
.AddHandler(s_gotFocusEvent, value);
3839
remove =>
Events
.RemoveHandler(s_gotFocusEvent, value);
3849
add =>
Events
.AddHandler(s_keyDownEvent, value);
3850
remove =>
Events
.RemoveHandler(s_keyDownEvent, value);
3860
add =>
Events
.AddHandler(s_keyPressEvent, value);
3861
remove =>
Events
.RemoveHandler(s_keyPressEvent, value);
3871
add =>
Events
.AddHandler(s_keyUpEvent, value);
3872
remove =>
Events
.RemoveHandler(s_keyUpEvent, value);
3879
add =>
Events
.AddHandler(s_layoutEvent, value);
3880
remove =>
Events
.RemoveHandler(s_layoutEvent, value);
3890
add =>
Events
.AddHandler(s_leaveEvent, value);
3891
remove =>
Events
.RemoveHandler(s_leaveEvent, value);
3903
add =>
Events
.AddHandler(s_lostFocusEvent, value);
3904
remove =>
Events
.RemoveHandler(s_lostFocusEvent, value);
3914
add =>
Events
.AddHandler(s_mouseClickEvent, value);
3915
remove =>
Events
.RemoveHandler(s_mouseClickEvent, value);
3925
add =>
Events
.AddHandler(s_mouseDoubleClickEvent, value);
3926
remove =>
Events
.RemoveHandler(s_mouseDoubleClickEvent, value);
3936
add =>
Events
.AddHandler(s_mouseCaptureChangedEvent, value);
3937
remove =>
Events
.RemoveHandler(s_mouseCaptureChangedEvent, value);
3948
add =>
Events
.AddHandler(s_mouseDownEvent, value);
3949
remove =>
Events
.RemoveHandler(s_mouseDownEvent, value);
3959
add =>
Events
.AddHandler(s_mouseEnterEvent, value);
3960
remove =>
Events
.RemoveHandler(s_mouseEnterEvent, value);
3970
add =>
Events
.AddHandler(s_mouseLeaveEvent, value);
3971
remove =>
Events
.RemoveHandler(s_mouseLeaveEvent, value);
3983
add =>
Events
.AddHandler(s_dpiChangedBeforeParentEvent, value);
3984
remove =>
Events
.RemoveHandler(s_dpiChangedBeforeParentEvent, value);
3996
add =>
Events
.AddHandler(s_dpiChangedAfterParentEvent, value);
3997
remove =>
Events
.RemoveHandler(s_dpiChangedAfterParentEvent, value);
4007
add =>
Events
.AddHandler(s_mouseHoverEvent, value);
4008
remove =>
Events
.RemoveHandler(s_mouseHoverEvent, value);
4018
add =>
Events
.AddHandler(s_mouseMoveEvent, value);
4019
remove =>
Events
.RemoveHandler(s_mouseMoveEvent, value);
4029
add =>
Events
.AddHandler(s_mouseUpEvent, value);
4030
remove =>
Events
.RemoveHandler(s_mouseUpEvent, value);
4042
add =>
Events
.AddHandler(s_mouseWheelEvent, value);
4043
remove =>
Events
.RemoveHandler(s_mouseWheelEvent, value);
4053
add =>
Events
.AddHandler(s_moveEvent, value);
4054
remove =>
Events
.RemoveHandler(s_moveEvent, value);
4064
add =>
Events
.AddHandler(s_previewKeyDownEvent, value);
4065
remove =>
Events
.RemoveHandler(s_previewKeyDownEvent, value);
4076
add =>
Events
.AddHandler(s_resizeEvent, value);
4077
remove =>
Events
.RemoveHandler(s_resizeEvent, value);
4084
add =>
Events
.AddHandler(s_changeUICuesEvent, value);
4085
remove =>
Events
.RemoveHandler(s_changeUICuesEvent, value);
4092
add =>
Events
.AddHandler(s_styleChangedEvent, value);
4093
remove =>
Events
.RemoveHandler(s_styleChangedEvent, value);
4100
add =>
Events
.AddHandler(s_systemColorsChangedEvent, value);
4101
remove =>
Events
.RemoveHandler(s_systemColorsChangedEvent, value);
4111
add =>
Events
.AddHandler(s_validatingEvent, value);
4112
remove =>
Events
.RemoveHandler(s_validatingEvent, value);
4122
add =>
Events
.AddHandler(s_validatedEvent, value);
4123
remove =>
Events
.RemoveHandler(s_validatedEvent, value);
4240
add =>
Events
.AddHandler(s_parentEvent, value);
4241
remove =>
Events
.RemoveHandler(s_parentEvent, value);
5063
((EventHandler?)
Events
[s_handleCreatedEvent])?.Invoke(this, e);
5073
((KeyEventHandler?)
Events
[key])?.Invoke(this, e);
5083
((MouseEventHandler?)
Events
[key])?.Invoke(this, e);
6567
if (
Events
[s_autoSizeChangedEvent] is EventHandler eh)
6596
if (
Events
[s_backColorEvent] is EventHandler eh)
6620
if (
Events
[s_backgroundImageEvent] is EventHandler eh)
6644
if (
Events
[s_backgroundImageLayoutEvent] is EventHandler eh)
6663
if (
Events
[s_bindingContextEvent] is EventHandler eh)
6680
if (
Events
[s_causesValidationEvent] is EventHandler eh)
6698
if (
Events
[s_contextMenuStripEvent] is EventHandler eh)
6707
if (
Events
[s_cursorEvent] is EventHandler eh)
6729
if (
Events
[s_dataContextEvent] is EventHandler eventHandler)
6746
if (
Events
[s_dockEvent] is EventHandler eh)
6778
if (
Events
[s_enabledEvent] is EventHandler eh)
6819
if (
Events
[s_fontEvent] is EventHandler eh)
6849
if (
Events
[s_foreColorEvent] is EventHandler eh)
6877
if (
Events
[s_rightToLeftEvent] is EventHandler eh)
7112
if (
Events
[s_tabIndexEvent] is EventHandler eh)
7121
if (
Events
[s_tabStopEvent] is EventHandler eh)
7130
if (
Events
[s_textEvent] is EventHandler eh)
7162
if (
Events
[s_visibleEvent] is EventHandler eh)
7199
if (
Events
[s_parentEvent] is EventHandler eh)
7218
((EventHandler?)
Events
[s_clickEvent])?.Invoke(this, e);
7224
if (
Events
[s_clientSizeEvent] is EventHandler eh)
7236
((ControlEventHandler?)
Events
[s_controlAddedEvent])?.Invoke(this, e);
7245
((ControlEventHandler?)
Events
[s_controlRemovedEvent])?.Invoke(this, e);
7326
((EventHandler?)
Events
[s_handleCreatedEvent])?.Invoke(this, e);
7413
if (
Events
[s_locationEvent] is EventHandler eh)
7431
((EventHandler?)
Events
[s_handleDestroyedEvent])?.Invoke(this, e);
7488
((EventHandler?)
Events
[s_doubleClickEvent])?.Invoke(this, e);
7503
((DragEventHandler?)
Events
[s_dragEnterEvent])?.Invoke(this, drgevent);
7513
((DragEventHandler?)
Events
[s_dragOverEvent])?.Invoke(this, drgevent);
7523
((EventHandler?)
Events
[s_dragLeaveEvent])?.Invoke(this, e);
7533
((DragEventHandler?)
Events
[s_dragDropEvent])?.Invoke(this, drgevent);
7543
((GiveFeedbackEventHandler?)
Events
[s_giveFeedbackEvent])?.Invoke(this, gfbevent);
7549
((EventHandler?)
Events
[s_enterEvent])?.Invoke(this, e);
7578
((EventHandler?)
Events
[s_gotFocusEvent])?.Invoke(this, e);
7588
HelpEventHandler? handler = (HelpEventHandler?)
Events
[s_helpRequestedEvent];
7629
((InvalidateEventHandler?)
Events
[s_invalidatedEvent])?.Invoke(this, e);
7638
((KeyEventHandler?)
Events
[s_keyDownEvent])?.Invoke(this, e);
7647
((KeyPressEventHandler?)
Events
[s_keyPressEvent])?.Invoke(this, e);
7662
((KeyEventHandler?)
Events
[s_keyUpEvent])?.Invoke(this, e);
7680
((LayoutEventHandler?)
Events
[s_layoutEvent])?.Invoke(this, levent);
7713
((EventHandler?)
Events
[s_leaveEvent])?.Invoke(this, e);
7737
((EventHandler?)
Events
[s_lostFocusEvent])?.Invoke(this, e);
7742
((EventHandler?)
Events
[s_marginChangedEvent])?.Invoke(this, e);
7751
((MouseEventHandler?)
Events
[s_mouseDoubleClickEvent])?.Invoke(this, e);
7760
((MouseEventHandler?)
Events
[s_mouseClickEvent])?.Invoke(this, e);
7769
((EventHandler?)
Events
[s_mouseCaptureChangedEvent])?.Invoke(this, e);
7778
((MouseEventHandler?)
Events
[s_mouseDownEvent])?.Invoke(this, e);
7787
((EventHandler?)
Events
[s_mouseEnterEvent])?.Invoke(this, e);
7796
((EventHandler?)
Events
[s_mouseLeaveEvent])?.Invoke(this, e);
7809
((EventHandler?)
Events
[s_dpiChangedBeforeParentEvent])?.Invoke(this, e);
7822
((EventHandler?)
Events
[s_dpiChangedAfterParentEvent])?.Invoke(this, e);
7831
((EventHandler?)
Events
[s_mouseHoverEvent])?.Invoke(this, e);
7840
((MouseEventHandler?)
Events
[s_mouseMoveEvent])?.Invoke(this, e);
7849
((MouseEventHandler?)
Events
[s_mouseUpEvent])?.Invoke(this, e);
7858
((MouseEventHandler?)
Events
[s_mouseWheelEvent])?.Invoke(this, e);
7867
((EventHandler?)
Events
[s_moveEvent])?.Invoke(this, e);
7882
((PaintEventHandler?)
Events
[s_paintEvent])?.Invoke(this, e);
7892
((EventHandler?)
Events
[s_paddingChangedEvent])?.Invoke(this, e);
7940
((QueryContinueDragEventHandler?)
Events
[s_queryContinueDragEvent])?.Invoke(this, qcdevent);
7949
if (
Events
[s_regionChangedEvent] is EventHandler eh)
7968
((EventHandler?)
Events
[s_resizeEvent])?.Invoke(this, e);
7977
((PreviewKeyDownEventHandler?)
Events
[s_previewKeyDownEvent])?.Invoke(this, e);
7985
if (
Events
[s_sizeEvent] is EventHandler eh)
7997
((UICuesEventHandler?)
Events
[s_changeUICuesEvent])?.Invoke(this, e);
8006
((EventHandler?)
Events
[s_styleChangedEvent])?.Invoke(this, e);
8025
((EventHandler?)
Events
[s_systemColorsChangedEvent])?.Invoke(this, e);
8034
((CancelEventHandler?)
Events
[s_validatingEvent])?.Invoke(this, e);
8043
((EventHandler?)
Events
[s_validatedEvent])?.Invoke(this, e);
9037
((DragEventHandler?)
Events
[key])?.Invoke(this, e);
9047
((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)
205
add =>
Events
.AddHandler(s_commandCanExecuteChangedEvent, value);
206
remove =>
Events
.RemoveHandler(s_commandCanExecuteChangedEvent, value);
217
add =>
Events
.AddHandler(s_commandChangedEvent, value);
218
remove =>
Events
.RemoveHandler(s_commandChangedEvent, value);
251
add =>
Events
.AddHandler(s_commandParameterChangedEvent, value);
252
remove =>
Events
.RemoveHandler(s_commandParameterChangedEvent, value);
1047
((EventHandler?)
Events
[s_commandCanExecuteChangedEvent])?.Invoke(this, e);
1213
private void RaiseEvent(object key, EventArgs e) => ((EventHandler?)
Events
[key])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (9)
94
add =>
Events
.AddHandler(s_appearanceChangedEvent, value);
95
remove =>
Events
.RemoveHandler(s_appearanceChangedEvent, value);
356
add =>
Events
.AddHandler(s_checkedChangedEvent, value);
357
remove =>
Events
.RemoveHandler(s_checkedChangedEvent, value);
366
add =>
Events
.AddHandler(s_checkStateChangedEvent, value);
367
remove =>
Events
.RemoveHandler(s_checkStateChangedEvent, value);
374
if (
Events
[s_appearanceChangedEvent] is EventHandler eh)
387
((EventHandler?)
Events
[s_checkedChangedEvent])?.Invoke(this, e);
405
((EventHandler?)
Events
[s_checkStateChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (6)
111
add =>
Events
.AddHandler(s_appearanceChangeEvent, value);
112
remove =>
Events
.RemoveHandler(s_appearanceChangeEvent, value);
320
add =>
Events
.AddHandler(s_checkedChangedEvent, value);
321
remove =>
Events
.RemoveHandler(s_checkedChangedEvent, value);
353
((EventHandler?)
Events
[s_checkedChangedEvent])?.Invoke(this, e);
461
if (
Events
[s_appearanceChangeEvent] is EventHandler eh)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (25)
1223
add =>
Events
.AddHandler(s_drawItemEvent, value);
1224
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
1231
add =>
Events
.AddHandler(s_dropDownEvent, value);
1232
remove =>
Events
.RemoveHandler(s_dropDownEvent, value);
1241
Events
.AddHandler(s_measureItemEvent, value);
1246
Events
.RemoveHandler(s_measureItemEvent, value);
1255
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
1256
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
1263
add =>
Events
.AddHandler(s_selectionChangedComittedEvent, value);
1264
remove =>
Events
.RemoveHandler(s_selectionChangedComittedEvent, value);
1271
add =>
Events
.AddHandler(s_dropDownStyleEvent, value);
1272
remove =>
Events
.RemoveHandler(s_dropDownStyleEvent, value);
1295
add =>
Events
.AddHandler(s_textUpdateEvent, value);
1296
remove =>
Events
.RemoveHandler(s_textUpdateEvent, value);
1307
add =>
Events
.AddHandler(s_dropDownClosedEvent, value);
1308
remove =>
Events
.RemoveHandler(s_dropDownClosedEvent, value);
2403
((DrawItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
2413
((EventHandler?)
Events
[s_dropDownEvent])?.Invoke(this, e);
2510
((MeasureItemEventHandler?)
Events
[s_measureItemEvent])?.Invoke(this, e);
2559
((EventHandler?)
Events
[s_selectionChangedComittedEvent])?.Invoke(this, e);
2578
((EventHandler?)
Events
[s_selectedIndexChangedEvent])?.Invoke(this, e);
2645
((EventHandler?)
Events
[s_selectedItemChangedEvent])?.Invoke(this, e);
2653
((EventHandler?)
Events
[s_dropDownStyleEvent])?.Invoke(this, e);
2870
((EventHandler?)
Events
[s_dropDownClosedEvent])?.Invoke(this, e);
2922
((EventHandler?)
Events
[s_textUpdateEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (236)
678
add =>
Events
.AddHandler(s_allowUserToAddRowsChangedEvent, value);
679
remove =>
Events
.RemoveHandler(s_allowUserToAddRowsChangedEvent, value);
706
add =>
Events
.AddHandler(s_allowUserToDeleteRowsChangedEvent, value);
707
remove =>
Events
.RemoveHandler(s_allowUserToDeleteRowsChangedEvent, value);
733
add =>
Events
.AddHandler(s_allowUserToOrderColumnsChangedEvent, value);
734
remove =>
Events
.RemoveHandler(s_allowUserToOrderColumnsChangedEvent, value);
761
add =>
Events
.AddHandler(s_allowUserToResizeColumnsChangedEvent, value);
762
remove =>
Events
.RemoveHandler(s_allowUserToResizeColumnsChangedEvent, value);
789
add =>
Events
.AddHandler(s_allowUserToResizeRowsChangedEvent, value);
790
remove =>
Events
.RemoveHandler(s_allowUserToResizeRowsChangedEvent, value);
828
add =>
Events
.AddHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value);
829
remove =>
Events
.RemoveHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value);
856
add =>
Events
.AddHandler(s_autoGenerateColumnsChangedEvent, value);
857
remove =>
Events
.RemoveHandler(s_autoGenerateColumnsChangedEvent, value);
936
add =>
Events
.AddHandler(s_autosizeColumnsModeChangedEvent, value);
937
remove =>
Events
.RemoveHandler(s_autosizeColumnsModeChangedEvent, value);
984
add =>
Events
.AddHandler(s_autosizeRowsModeChangedEvent, value);
985
remove =>
Events
.RemoveHandler(s_autosizeRowsModeChangedEvent, value);
1032
add =>
Events
.AddHandler(s_backgroundColorChangedEvent, value);
1033
remove =>
Events
.RemoveHandler(s_backgroundColorChangedEvent, value);
1105
add =>
Events
.AddHandler(s_borderStyleChangedEvent, value);
1106
remove =>
Events
.RemoveHandler(s_borderStyleChangedEvent, value);
1325
add =>
Events
.AddHandler(s_cellBorderStyleChangedEvent, value);
1326
remove =>
Events
.RemoveHandler(s_cellBorderStyleChangedEvent, value);
1500
add =>
Events
.AddHandler(s_columnHeadersBorderStyleChangedEvent, value);
1501
remove =>
Events
.RemoveHandler(s_columnHeadersBorderStyleChangedEvent, value);
1561
add =>
Events
.AddHandler(s_columnHeadersDefaultCellStyleChangedEvent, value);
1562
remove =>
Events
.RemoveHandler(s_columnHeadersDefaultCellStyleChangedEvent, value);
1591
add =>
Events
.AddHandler(s_columnHeadersHeightChangedEvent, value);
1592
remove =>
Events
.RemoveHandler(s_columnHeadersHeightChangedEvent, value);
1626
add =>
Events
.AddHandler(s_columnHeadersHeightSizeModeChangedEvent, value);
1627
remove =>
Events
.RemoveHandler(s_columnHeadersHeightSizeModeChangedEvent, value);
1898
add =>
Events
.AddHandler(s_dataMemberChangedEvent, value);
1899
remove =>
Events
.RemoveHandler(s_dataMemberChangedEvent, value);
1954
add =>
Events
.AddHandler(s_dataSourceChangedEvent, value);
1955
remove =>
Events
.RemoveHandler(s_dataSourceChangedEvent, value);
2074
add =>
Events
.AddHandler(s_defaultCellStyleChangedEvent, value);
2075
remove =>
Events
.RemoveHandler(s_defaultCellStyleChangedEvent, value);
2164
add =>
Events
.AddHandler(s_editModeChangedEvent, value);
2165
remove =>
Events
.RemoveHandler(s_editModeChangedEvent, value);
2657
add =>
Events
.AddHandler(s_gridColorChangedEvent, value);
2658
remove =>
Events
.RemoveHandler(s_gridColorChangedEvent, value);
3005
add =>
Events
.AddHandler(s_multiselectChangedEvent, value);
3006
remove =>
Events
.RemoveHandler(s_multiselectChangedEvent, value);
3129
add =>
Events
.AddHandler(s_readOnlyChangedEvent, value);
3130
remove =>
Events
.RemoveHandler(s_readOnlyChangedEvent, value);
3286
add =>
Events
.AddHandler(s_rowHeadersBorderStyleChangedEvent, value);
3287
remove =>
Events
.RemoveHandler(s_rowHeadersBorderStyleChangedEvent, value);
3325
add =>
Events
.AddHandler(s_rowHeadersDefaultCellStyleChangedEvent, value);
3326
remove =>
Events
.RemoveHandler(s_rowHeadersDefaultCellStyleChangedEvent, value);
3428
add =>
Events
.AddHandler(s_rowHeadersWidthChangedEvent, value);
3429
remove =>
Events
.RemoveHandler(s_rowHeadersWidthChangedEvent, value);
3468
add =>
Events
.AddHandler(s_rowHeadersWidthSizeModeChangedEvent, value);
3469
remove =>
Events
.RemoveHandler(s_rowHeadersWidthSizeModeChangedEvent, value);
3518
add =>
Events
.AddHandler(s_rowsDefaultCellStyleChangedEvent, value);
3519
remove =>
Events
.RemoveHandler(s_rowsDefaultCellStyleChangedEvent, value);
4161
add =>
Events
.AddHandler(s_autosizeColumnModeChangedEvent, value);
4162
remove =>
Events
.RemoveHandler(s_autosizeColumnModeChangedEvent, value);
4169
add =>
Events
.AddHandler(s_cancelRowEditEvent, value);
4170
remove =>
Events
.RemoveHandler(s_cancelRowEditEvent, value);
4177
add =>
Events
.AddHandler(s_cellBeginEditEvent, value);
4178
remove =>
Events
.RemoveHandler(s_cellBeginEditEvent, value);
4185
add =>
Events
.AddHandler(s_cellClickEvent, value);
4186
remove =>
Events
.RemoveHandler(s_cellClickEvent, value);
4193
add =>
Events
.AddHandler(s_cellContentClickEvent, value);
4194
remove =>
Events
.RemoveHandler(s_cellContentClickEvent, value);
4201
add =>
Events
.AddHandler(s_cellContentDoubleClickEvent, value);
4202
remove =>
Events
.RemoveHandler(s_cellContentDoubleClickEvent, value);
4210
add =>
Events
.AddHandler(s_cellContextMenuStripChangedEvent, value);
4211
remove =>
Events
.RemoveHandler(s_cellContextMenuStripChangedEvent, value);
4219
add =>
Events
.AddHandler(s_cellContextMenuStripNeededEvent, value);
4220
remove =>
Events
.RemoveHandler(s_cellContextMenuStripNeededEvent, value);
4227
add =>
Events
.AddHandler(s_cellDoubleClickEvent, value);
4228
remove =>
Events
.RemoveHandler(s_cellDoubleClickEvent, value);
4235
add =>
Events
.AddHandler(s_cellEndEditEvent, value);
4236
remove =>
Events
.RemoveHandler(s_cellEndEditEvent, value);
4243
add =>
Events
.AddHandler(s_cellEnterEvent, value);
4244
remove =>
Events
.RemoveHandler(s_cellEnterEvent, value);
4251
add =>
Events
.AddHandler(s_cellErrorTextChangedEvent, value);
4252
remove =>
Events
.RemoveHandler(s_cellErrorTextChangedEvent, value);
4260
add =>
Events
.AddHandler(s_cellErrorTextNeededEvent, value);
4261
remove =>
Events
.RemoveHandler(s_cellErrorTextNeededEvent, value);
4268
add =>
Events
.AddHandler(s_cellFormattingEvent, value);
4269
remove =>
Events
.RemoveHandler(s_cellFormattingEvent, value);
4276
add =>
Events
.AddHandler(s_cellLeaveEvent, value);
4277
remove =>
Events
.RemoveHandler(s_cellLeaveEvent, value);
4284
add =>
Events
.AddHandler(s_cellMouseClickEvent, value);
4285
remove =>
Events
.RemoveHandler(s_cellMouseClickEvent, value);
4292
add =>
Events
.AddHandler(s_cellMouseDoubleClickEvent, value);
4293
remove =>
Events
.RemoveHandler(s_cellMouseDoubleClickEvent, value);
4300
add =>
Events
.AddHandler(s_cellMouseDownEvent, value);
4301
remove =>
Events
.RemoveHandler(s_cellMouseDownEvent, value);
4308
add =>
Events
.AddHandler(s_cellMouseEnterEvent, value);
4309
remove =>
Events
.RemoveHandler(s_cellMouseEnterEvent, value);
4316
add =>
Events
.AddHandler(s_cellMouseLeaveEvent, value);
4317
remove =>
Events
.RemoveHandler(s_cellMouseLeaveEvent, value);
4324
add =>
Events
.AddHandler(s_cellMouseMoveEvent, value);
4325
remove =>
Events
.RemoveHandler(s_cellMouseMoveEvent, value);
4332
add =>
Events
.AddHandler(s_cellMouseUpEvent, value);
4333
remove =>
Events
.RemoveHandler(s_cellMouseUpEvent, value);
4340
add =>
Events
.AddHandler(s_cellPaintingEvent, value);
4341
remove =>
Events
.RemoveHandler(s_cellPaintingEvent, value);
4348
add =>
Events
.AddHandler(s_cellParsingEvent, value);
4349
remove =>
Events
.RemoveHandler(s_cellParsingEvent, value);
4356
add =>
Events
.AddHandler(s_cellStateChangedEvent, value);
4357
remove =>
Events
.RemoveHandler(s_cellStateChangedEvent, value);
4364
add =>
Events
.AddHandler(s_cellStyleChangedEvent, value);
4365
remove =>
Events
.RemoveHandler(s_cellStyleChangedEvent, value);
4372
add =>
Events
.AddHandler(s_cellStyleContentChangedEvent, value);
4373
remove =>
Events
.RemoveHandler(s_cellStyleContentChangedEvent, value);
4380
add =>
Events
.AddHandler(s_cellTooltipTextChangedEvent, value);
4381
remove =>
Events
.RemoveHandler(s_cellTooltipTextChangedEvent, value);
4389
add =>
Events
.AddHandler(s_cellTooltipTextNeededEvent, value);
4390
remove =>
Events
.RemoveHandler(s_cellTooltipTextNeededEvent, value);
4397
add =>
Events
.AddHandler(s_cellValidatedEvent, value);
4398
remove =>
Events
.RemoveHandler(s_cellValidatedEvent, value);
4405
add =>
Events
.AddHandler(s_cellValidatingEvent, value);
4406
remove =>
Events
.RemoveHandler(s_cellValidatingEvent, value);
4413
add =>
Events
.AddHandler(s_cellValueChangedEvent, value);
4414
remove =>
Events
.RemoveHandler(s_cellValueChangedEvent, value);
4422
add =>
Events
.AddHandler(s_cellValueNeededEvent, value);
4423
remove =>
Events
.RemoveHandler(s_cellValueNeededEvent, value);
4431
add =>
Events
.AddHandler(s_cellValuePushedEvent, value);
4432
remove =>
Events
.RemoveHandler(s_cellValuePushedEvent, value);
4439
add =>
Events
.AddHandler(s_columnAddedEvent, value);
4440
remove =>
Events
.RemoveHandler(s_columnAddedEvent, value);
4447
add =>
Events
.AddHandler(s_columnContextMenuStripChangedEvent, value);
4448
remove =>
Events
.RemoveHandler(s_columnContextMenuStripChangedEvent, value);
4455
add =>
Events
.AddHandler(s_columnDataPropertyNameChangedEvent, value);
4456
remove =>
Events
.RemoveHandler(s_columnDataPropertyNameChangedEvent, value);
4463
add =>
Events
.AddHandler(s_columnDefaultCellStyleChangedEvent, value);
4464
remove =>
Events
.RemoveHandler(s_columnDefaultCellStyleChangedEvent, value);
4471
add =>
Events
.AddHandler(s_columnDisplayIndexChangedEvent, value);
4472
remove =>
Events
.RemoveHandler(s_columnDisplayIndexChangedEvent, value);
4479
add =>
Events
.AddHandler(s_columnDividerDoubleClickEvent, value);
4480
remove =>
Events
.RemoveHandler(s_columnDividerDoubleClickEvent, value);
4487
add =>
Events
.AddHandler(s_columnDividerWidthChangedEvent, value);
4488
remove =>
Events
.RemoveHandler(s_columnDividerWidthChangedEvent, value);
4495
add =>
Events
.AddHandler(s_columnHeaderMouseClickEvent, value);
4496
remove =>
Events
.RemoveHandler(s_columnHeaderMouseClickEvent, value);
4503
add =>
Events
.AddHandler(s_columnHeaderMouseDoubleClickEvent, value);
4504
remove =>
Events
.RemoveHandler(s_columnHeaderMouseDoubleClickEvent, value);
4511
add =>
Events
.AddHandler(s_columnHeaderCellChangedEvent, value);
4512
remove =>
Events
.RemoveHandler(s_columnHeaderCellChangedEvent, value);
4519
add =>
Events
.AddHandler(s_columnMinimumWidthChangedEvent, value);
4520
remove =>
Events
.RemoveHandler(s_columnMinimumWidthChangedEvent, value);
4527
add =>
Events
.AddHandler(s_columnNameChangedEvent, value);
4528
remove =>
Events
.RemoveHandler(s_columnNameChangedEvent, value);
4535
add =>
Events
.AddHandler(s_columnRemovedEvent, value);
4536
remove =>
Events
.RemoveHandler(s_columnRemovedEvent, value);
4543
add =>
Events
.AddHandler(s_columnSortModeChangedEvent, value);
4544
remove =>
Events
.RemoveHandler(s_columnSortModeChangedEvent, value);
4551
add =>
Events
.AddHandler(s_columnStateChangedEvent, value);
4552
remove =>
Events
.RemoveHandler(s_columnStateChangedEvent, value);
4559
add =>
Events
.AddHandler(s_columnTooltipTextChangedEvent, value);
4560
remove =>
Events
.RemoveHandler(s_columnTooltipTextChangedEvent, value);
4567
add =>
Events
.AddHandler(s_columnWidthChangedEvent, value);
4568
remove =>
Events
.RemoveHandler(s_columnWidthChangedEvent, value);
4575
add =>
Events
.AddHandler(s_currentCellChangedEvent, value);
4576
remove =>
Events
.RemoveHandler(s_currentCellChangedEvent, value);
4584
add =>
Events
.AddHandler(s_currentCellDirtyStateChangedEvent, value);
4585
remove =>
Events
.RemoveHandler(s_currentCellDirtyStateChangedEvent, value);
4592
add =>
Events
.AddHandler(s_dataBindingCompleteEvent, value);
4593
remove =>
Events
.RemoveHandler(s_dataBindingCompleteEvent, value);
4600
add =>
Events
.AddHandler(s_dataErrorEvent, value);
4601
remove =>
Events
.RemoveHandler(s_dataErrorEvent, value);
4609
add =>
Events
.AddHandler(s_defaultValuesNeededEvent, value);
4610
remove =>
Events
.RemoveHandler(s_defaultValuesNeededEvent, value);
4617
add =>
Events
.AddHandler(s_editingControlShowingEvent, value);
4618
remove =>
Events
.RemoveHandler(s_editingControlShowingEvent, value);
4625
add =>
Events
.AddHandler(s_newRowNeededEvent, value);
4626
remove =>
Events
.RemoveHandler(s_newRowNeededEvent, value);
4633
add =>
Events
.AddHandler(s_rowContextMenuStripChangedEvent, value);
4634
remove =>
Events
.RemoveHandler(s_rowContextMenuStripChangedEvent, value);
4642
add =>
Events
.AddHandler(s_rowContextMenuStripNeededEvent, value);
4643
remove =>
Events
.RemoveHandler(s_rowContextMenuStripNeededEvent, value);
4650
add =>
Events
.AddHandler(s_rowDefaultCellStyleChangedEvent, value);
4651
remove =>
Events
.RemoveHandler(s_rowDefaultCellStyleChangedEvent, value);
4659
add =>
Events
.AddHandler(s_rowDirtyStateNeededEvent, value);
4660
remove =>
Events
.RemoveHandler(s_rowDirtyStateNeededEvent, value);
4667
add =>
Events
.AddHandler(s_rowDividerDoubleClickEvent, value);
4668
remove =>
Events
.RemoveHandler(s_rowDividerDoubleClickEvent, value);
4675
add =>
Events
.AddHandler(s_rowDividerHeightChangedEvent, value);
4676
remove =>
Events
.RemoveHandler(s_rowDividerHeightChangedEvent, value);
4683
add =>
Events
.AddHandler(s_rowEnterEvent, value);
4684
remove =>
Events
.RemoveHandler(s_rowEnterEvent, value);
4691
add =>
Events
.AddHandler(s_rowErrorTextChangedEvent, value);
4692
remove =>
Events
.RemoveHandler(s_rowErrorTextChangedEvent, value);
4700
add =>
Events
.AddHandler(s_rowErrorTextNeededEvent, value);
4701
remove =>
Events
.RemoveHandler(s_rowErrorTextNeededEvent, value);
4708
add =>
Events
.AddHandler(s_rowHeaderMouseClickEvent, value);
4709
remove =>
Events
.RemoveHandler(s_rowHeaderMouseClickEvent, value);
4716
add =>
Events
.AddHandler(s_rowHeaderMouseDoubleClickEvent, value);
4717
remove =>
Events
.RemoveHandler(s_rowHeaderMouseDoubleClickEvent, value);
4724
add =>
Events
.AddHandler(s_rowHeaderCellChangedEvent, value);
4725
remove =>
Events
.RemoveHandler(s_rowHeaderCellChangedEvent, value);
4732
add =>
Events
.AddHandler(s_rowHeightChangedEvent, value);
4733
remove =>
Events
.RemoveHandler(s_rowHeightChangedEvent, value);
4741
add =>
Events
.AddHandler(s_rowHeightInfoNeededEvent, value);
4742
remove =>
Events
.RemoveHandler(s_rowHeightInfoNeededEvent, value);
4760
add =>
Events
.AddHandler(s_rowHeightInfoPushedEvent, value);
4761
remove =>
Events
.RemoveHandler(s_rowHeightInfoPushedEvent, value);
4768
add =>
Events
.AddHandler(s_rowLeaveEvent, value);
4769
remove =>
Events
.RemoveHandler(s_rowLeaveEvent, value);
4776
add =>
Events
.AddHandler(s_rowMinimumHeightChangeEvent, value);
4777
remove =>
Events
.RemoveHandler(s_rowMinimumHeightChangeEvent, value);
4784
add =>
Events
.AddHandler(s_rowPostPaintEvent, value);
4785
remove =>
Events
.RemoveHandler(s_rowPostPaintEvent, value);
4802
add =>
Events
.AddHandler(s_rowPrePaintEvent, value);
4803
remove =>
Events
.RemoveHandler(s_rowPrePaintEvent, value);
4820
add =>
Events
.AddHandler(s_rowsAddedEvent, value);
4821
remove =>
Events
.RemoveHandler(s_rowsAddedEvent, value);
4828
add =>
Events
.AddHandler(s_rowsRemovedEvent, value);
4829
remove =>
Events
.RemoveHandler(s_rowsRemovedEvent, value);
4836
add =>
Events
.AddHandler(s_rowStateChangedEvent, value);
4837
remove =>
Events
.RemoveHandler(s_rowStateChangedEvent, value);
4845
add =>
Events
.AddHandler(s_rowUnsharedEvent, value);
4846
remove =>
Events
.RemoveHandler(s_rowUnsharedEvent, value);
4853
add =>
Events
.AddHandler(s_rowValidatedEvent, value);
4854
remove =>
Events
.RemoveHandler(s_rowValidatedEvent, value);
4861
add =>
Events
.AddHandler(s_rowValidatingEvent, value);
4862
remove =>
Events
.RemoveHandler(s_rowValidatingEvent, value);
4869
add =>
Events
.AddHandler(s_scrollEvent, value);
4870
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
4877
add =>
Events
.AddHandler(s_selectionChangedEvent, value);
4878
remove =>
Events
.RemoveHandler(s_selectionChangedEvent, value);
4886
add =>
Events
.AddHandler(s_sortCompareEvent, value);
4887
remove =>
Events
.RemoveHandler(s_sortCompareEvent, value);
4894
add =>
Events
.AddHandler(s_sortedEvent, value);
4895
remove =>
Events
.RemoveHandler(s_sortedEvent, value);
4910
add =>
Events
.AddHandler(s_userAddedRowEvent, value);
4911
remove =>
Events
.RemoveHandler(s_userAddedRowEvent, value);
4918
add =>
Events
.AddHandler(s_userDeletedRowEvent, value);
4919
remove =>
Events
.RemoveHandler(s_userDeletedRowEvent, value);
4926
add =>
Events
.AddHandler(s_userDeletingRowEvent, value);
4927
remove =>
Events
.RemoveHandler(s_userDeletingRowEvent, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
14618
if (
Events
[s_dataErrorEvent] is not DataGridViewDataErrorEventHandler eh)
14667
if (
Events
[s_rowStateChangedEvent] is DataGridViewRowStateChangedEventHandler
30121
_dataGridViewOper[OperationInDispose] || IsDisposed ? null :
Events
[staticEvent] as T;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
537
add =>
Events
.AddHandler(s_formatChangedEvent, value);
538
remove =>
Events
.RemoveHandler(s_formatChangedEvent, value);
1082
if (
Events
[s_formatChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\Labels\Label.cs (3)
733
add =>
Events
.AddHandler(s_eventTextAlignChanged, value);
734
remove =>
Events
.RemoveHandler(s_eventTextAlignChanged, value);
1237
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)
1234
add =>
Events
.AddHandler(s_drawItemEvent, value);
1235
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
1242
add =>
Events
.AddHandler(s_measureItemEvent, value);
1243
remove =>
Events
.RemoveHandler(s_measureItemEvent, value);
1250
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
1251
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
1734
((DrawItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
1821
((MeasureItemEventHandler?)
Events
[s_measureItemEvent])?.Invoke(this, e);
1907
((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)
1350
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
1351
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
1962
add =>
Events
.AddHandler(s_cacheVirtualItemsEvent, value);
1963
remove =>
Events
.RemoveHandler(s_cacheVirtualItemsEvent, value);
1981
add =>
Events
.AddHandler(s_groupTaskLinkClickEvent, value);
1982
remove =>
Events
.RemoveHandler(s_groupTaskLinkClickEvent, value);
1992
add =>
Events
.AddHandler(s_columnReorderedEvent, value);
1993
remove =>
Events
.RemoveHandler(s_columnReorderedEvent, value);
2003
add =>
Events
.AddHandler(s_columnWidthChangedEvent, value);
2004
remove =>
Events
.RemoveHandler(s_columnWidthChangedEvent, value);
2014
add =>
Events
.AddHandler(s_columnWidthChangingEvent, value);
2015
remove =>
Events
.RemoveHandler(s_columnWidthChangingEvent, value);
2025
add =>
Events
.AddHandler(s_drawColumnHeaderEvent, value);
2026
remove =>
Events
.RemoveHandler(s_drawColumnHeaderEvent, value);
2036
add =>
Events
.AddHandler(s_drawItemEvent, value);
2037
remove =>
Events
.RemoveHandler(s_drawItemEvent, value);
2047
add =>
Events
.AddHandler(s_drawSubItemEvent, value);
2048
remove =>
Events
.RemoveHandler(s_drawSubItemEvent, value);
2095
add =>
Events
.AddHandler(s_itemSelectionChangedEvent, value);
2096
remove =>
Events
.RemoveHandler(s_itemSelectionChangedEvent, value);
2106
add =>
Events
.AddHandler(s_groupCollapsedStateChangedEvent, value);
2107
remove =>
Events
.RemoveHandler(s_groupCollapsedStateChangedEvent, value);
2142
add =>
Events
.AddHandler(s_retrieveVirtualItemEvent, value);
2143
remove =>
Events
.RemoveHandler(s_retrieveVirtualItemEvent, value);
2150
add =>
Events
.AddHandler(s_searchForVirtualItemEvent, value);
2151
remove =>
Events
.RemoveHandler(s_searchForVirtualItemEvent, value);
2158
add =>
Events
.AddHandler(s_selectedIndexChangedEvent, value);
2159
remove =>
Events
.RemoveHandler(s_selectedIndexChangedEvent, value);
2166
add =>
Events
.AddHandler(s_virtualItemSelectionRangeChangedEvent, value);
2167
remove =>
Events
.RemoveHandler(s_virtualItemSelectionRangeChangedEvent, value);
4404
((CacheVirtualItemsEventHandler?)
Events
[s_cacheVirtualItemsEvent])?.Invoke(this, e);
4427
((EventHandler<ListViewGroupEventArgs>?)
Events
[s_groupCollapsedStateChangedEvent])?.Invoke(this, e);
4443
((EventHandler<ListViewGroupEventArgs>?)
Events
[s_groupTaskLinkClickEvent])?.Invoke(this, e);
4451
((ColumnReorderedEventHandler?)
Events
[s_columnReorderedEvent])?.Invoke(this, e);
4459
((ColumnWidthChangedEventHandler?)
Events
[s_columnWidthChangedEvent])?.Invoke(this, e);
4467
((ColumnWidthChangingEventHandler?)
Events
[s_columnWidthChangingEvent])?.Invoke(this, e);
4475
((DrawListViewColumnHeaderEventHandler?)
Events
[s_drawColumnHeaderEvent])?.Invoke(this, e);
4483
((DrawListViewItemEventHandler?)
Events
[s_drawItemEvent])?.Invoke(this, e);
4491
((DrawListViewSubItemEventHandler?)
Events
[s_drawSubItemEvent])?.Invoke(this, e);
4781
((ListViewItemSelectionChangedEventHandler?)
Events
[s_itemSelectionChangedEvent])?.Invoke(this, e);
4809
((RetrieveVirtualItemEventHandler?)
Events
[s_retrieveVirtualItemEvent])?.Invoke(this, e);
4825
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
4836
((SearchForVirtualItemEventHandler?)
Events
[s_searchForVirtualItemEvent])?.Invoke(this, e);
4848
((EventHandler?)
Events
[s_selectedIndexChangedEvent])?.Invoke(this, e);
4886
((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)
753
add =>
Events
.AddHandler(s_loadCompletedKey, value);
754
remove =>
Events
.RemoveHandler(s_loadCompletedKey, value);
761
add =>
Events
.AddHandler(s_loadProgressChangedKey, value);
762
remove =>
Events
.RemoveHandler(s_loadProgressChangedKey, value);
860
add =>
Events
.AddHandler(s_sizeModeChangedEvent, value);
861
remove =>
Events
.RemoveHandler(s_sizeModeChangedEvent, value);
1098
((AsyncCompletedEventHandler?)(
Events
[s_loadCompletedKey]))?.Invoke(this, e);
1101
((ProgressChangedEventHandler?)(
Events
[s_loadProgressChangedKey]))?.Invoke(this, e);
1175
if (
Events
[s_sizeModeChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (21)
1496
add =>
Events
.AddHandler(s_requestSizeEvent, value);
1497
remove =>
Events
.RemoveHandler(s_requestSizeEvent, value);
1558
add =>
Events
.AddHandler(s_hscrollEvent, value);
1559
remove =>
Events
.RemoveHandler(s_hscrollEvent, value);
1566
add =>
Events
.AddHandler(s_linkActivateEvent, value);
1567
remove =>
Events
.RemoveHandler(s_linkActivateEvent, value);
1574
add =>
Events
.AddHandler(s_imeChangeEvent, value);
1575
remove =>
Events
.RemoveHandler(s_imeChangeEvent, value);
1582
add =>
Events
.AddHandler(s_protectedEvent, value);
1583
remove =>
Events
.RemoveHandler(s_protectedEvent, value);
1590
add =>
Events
.AddHandler(s_selectionChangeEvent, value);
1591
remove =>
Events
.RemoveHandler(s_selectionChangeEvent, value);
1598
add =>
Events
.AddHandler(s_vscrollEvent, value);
1599
remove =>
Events
.RemoveHandler(s_vscrollEvent, value);
2397
((ContentsResizedEventHandler?)
Events
[s_requestSizeEvent])?.Invoke(this, e);
2537
((EventHandler?)
Events
[s_hscrollEvent])?.Invoke(this, e);
2545
((LinkClickedEventHandler?)
Events
[s_linkActivateEvent])?.Invoke(this, e);
2553
((EventHandler?)
Events
[s_imeChangeEvent])?.Invoke(this, e);
2563
((EventHandler?)
Events
[s_protectedEvent])?.Invoke(this, e);
2572
((EventHandler?)
Events
[s_selectionChangeEvent])?.Invoke(this, e);
2581
((EventHandler?)
Events
[s_vscrollEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
505
add =>
Events
.AddHandler(s_movingEvent, value);
506
remove =>
Events
.RemoveHandler(s_movingEvent, value);
513
add =>
Events
.AddHandler(s_movedEvent, value);
514
remove =>
Events
.RemoveHandler(s_movedEvent, value);
846
((SplitterEventHandler?)
Events
[s_movingEvent])?.Invoke(this, sevent);
861
((SplitterEventHandler?)
Events
[s_movedEvent])?.Invoke(this, sevent);
System\Windows\Forms\Controls\TabControl\TabControl.cs (15)
849
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
850
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
868
add =>
Events
.AddHandler(s_selectingEvent, value);
869
remove =>
Events
.RemoveHandler(s_selectingEvent, value);
879
add =>
Events
.AddHandler(s_selectedEvent, value);
880
remove =>
Events
.RemoveHandler(s_selectedEvent, value);
890
add =>
Events
.AddHandler(s_deselectingEvent, value);
891
remove =>
Events
.RemoveHandler(s_deselectingEvent, value);
901
add =>
Events
.AddHandler(s_deselectedEvent, value);
902
remove =>
Events
.RemoveHandler(s_deselectedEvent, value);
1430
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
1459
((TabControlCancelEventHandler?)
Events
[s_selectingEvent])?.Invoke(this, e);
1467
((TabControlEventHandler?)
Events
[s_selectedEvent])?.Invoke(this, e);
1478
((TabControlCancelEventHandler?)
Events
[s_deselectingEvent])?.Invoke(this, e);
1486
((TabControlEventHandler?)
Events
[s_deselectedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (15)
589
add =>
Events
.AddHandler(s_isOverwriteModeChangedEvent, value);
590
remove =>
Events
.RemoveHandler(s_isOverwriteModeChangedEvent, value);
730
add =>
Events
.AddHandler(s_maskChangedEvent, value);
731
remove =>
Events
.RemoveHandler(s_maskChangedEvent, value);
781
add =>
Events
.AddHandler(s_maskInputRejectedEvent, value);
782
remove =>
Events
.RemoveHandler(s_maskInputRejectedEvent, value);
1268
add =>
Events
.AddHandler(s_textAlignChangedEvent, value);
1270
remove =>
Events
.RemoveHandler(s_textAlignChangedEvent, value);
1378
add =>
Events
.AddHandler(s_validationCompletedEvent, value);
1379
remove =>
Events
.RemoveHandler(s_validationCompletedEvent, value);
1835
if (
Events
[s_isOverwriteModeChangedEvent] is EventHandler eh)
2053
if (
Events
[s_maskChangedEvent] is EventHandler eh)
2072
if (
Events
[s_maskInputRejectedEvent] is MaskInputRejectedEventHandler eh)
2106
if (
Events
[s_textAlignChangedEvent] is EventHandler eh)
2117
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);
676
if (
Events
[s_textAlignChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (18)
141
add =>
Events
.AddHandler(s_acceptsTabChangedEvent, value);
142
remove =>
Events
.RemoveHandler(s_acceptsTabChangedEvent, value);
377
add =>
Events
.AddHandler(s_borderStyleChangedEvent, value);
378
remove =>
Events
.RemoveHandler(s_borderStyleChangedEvent, value);
541
add =>
Events
.AddHandler(s_hideSelectionChangedEvent, value);
542
remove =>
Events
.RemoveHandler(s_hideSelectionChangedEvent, value);
703
add =>
Events
.AddHandler(s_modifiedChangedEvent, value);
704
remove =>
Events
.RemoveHandler(s_modifiedChangedEvent, value);
753
add =>
Events
.AddHandler(s_multilineChangedEvent, value);
754
remove =>
Events
.RemoveHandler(s_multilineChangedEvent, value);
949
add =>
Events
.AddHandler(s_readOnlyChangedEvent, value);
950
remove =>
Events
.RemoveHandler(s_readOnlyChangedEvent, value);
1423
if (
Events
[s_acceptsTabChangedEvent] is EventHandler eh)
1431
if (
Events
[s_borderStyleChangedEvent] is EventHandler eh)
1445
if (
Events
[s_hideSelectionChangedEvent] is EventHandler eh)
1453
if (
Events
[s_modifiedChangedEvent] is EventHandler eh)
1490
if (
Events
[s_multilineChangedEvent] is EventHandler eh)
1504
if (
Events
[s_readOnlyChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (30)
375
add =>
Events
.AddHandler(s_eventBeginDrag, value);
376
remove =>
Events
.RemoveHandler(s_eventBeginDrag, value);
512
add =>
Events
.AddHandler(s_eventEndDrag, value);
513
remove =>
Events
.RemoveHandler(s_eventEndDrag, value);
1057
add =>
Events
.AddHandler(s_eventItemAdded, value);
1058
remove =>
Events
.RemoveHandler(s_eventItemAdded, value);
1068
add =>
Events
.AddHandler(s_eventItemClicked, value);
1069
remove =>
Events
.RemoveHandler(s_eventItemClicked, value);
1100
add =>
Events
.AddHandler(s_eventItemRemoved, value);
1101
remove =>
Events
.RemoveHandler(s_eventItemRemoved, value);
1264
add =>
Events
.AddHandler(s_eventLayoutCompleted, value);
1265
remove =>
Events
.RemoveHandler(s_eventLayoutCompleted, value);
1274
add =>
Events
.AddHandler(s_eventLayoutStyleChanged, value);
1275
remove =>
Events
.RemoveHandler(s_eventLayoutStyleChanged, value);
1288
add =>
Events
.AddHandler(s_eventLocationChanging, value);
1289
remove =>
Events
.RemoveHandler(s_eventLocationChanging, value);
1387
add =>
Events
.AddHandler(s_eventPaintGrip, value);
1388
remove =>
Events
.RemoveHandler(s_eventPaintGrip, value);
1538
add =>
Events
.AddHandler(s_eventRendererChanged, value);
1539
remove =>
Events
.RemoveHandler(s_eventRendererChanged, value);
3116
((EventHandler?)
Events
[s_eventBeginDrag])?.Invoke(this, e);
3122
((EventHandler?)
Events
[s_eventEndDrag])?.Invoke(this, e);
3134
((EventHandler?)
Events
[s_eventRendererChanged])?.Invoke(this, e);
3207
((ToolStripItemEventHandler?)
Events
[s_eventItemAdded])?.Invoke(this, e);
3215
((ToolStripItemClickedEventHandler?)
Events
[s_eventItemClicked])?.Invoke(this, e);
3223
((ToolStripItemEventHandler?)
Events
[s_eventItemRemoved])?.Invoke(this, e);
3277
((EventHandler?)
Events
[s_eventLayoutCompleted])?.Invoke(this, e);
3282
((EventHandler?)
Events
[s_eventLayoutStyleChanged])?.Invoke(this, e);
3302
((ToolStripLocationCancelEventHandler?)
Events
[s_eventLocationChanging])?.Invoke(this, e);
3682
((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);
1104
((ToolStripDropDownClosedEventHandler?)
Events
[s_closedEvent])?.Invoke(this, e);
1109
((ToolStripDropDownClosingEventHandler?)
Events
[s_closingEvent])?.Invoke(this, e);
1153
((CancelEventHandler?)
Events
[s_openingEvent])?.Invoke(this, e);
1158
((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);
471
add =>
Events
.AddHandler(s_commandParameterChangedEvent, value);
472
remove =>
Events
.RemoveHandler(s_commandParameterChangedEvent, value);
538
add =>
Events
.AddHandler(s_backColorChangedEvent, value);
539
remove =>
Events
.RemoveHandler(s_backColorChangedEvent, value);
590
add =>
Events
.AddHandler(s_clickEvent, value);
591
remove =>
Events
.RemoveHandler(s_clickEvent, value);
722
add =>
Events
.AddHandler(s_displayStyleChangedEvent, value);
723
remove =>
Events
.RemoveHandler(s_displayStyleChangedEvent, value);
736
add =>
Events
.AddHandler(s_doubleClickEvent, value);
737
remove =>
Events
.RemoveHandler(s_doubleClickEvent, value);
755
add =>
Events
.AddHandler(s_dragDropEvent, value);
756
remove =>
Events
.RemoveHandler(s_dragDropEvent, value);
765
add =>
Events
.AddHandler(s_dragEnterEvent, value);
766
remove =>
Events
.RemoveHandler(s_dragEnterEvent, value);
775
add =>
Events
.AddHandler(s_dragOverEvent, value);
776
remove =>
Events
.RemoveHandler(s_dragOverEvent, value);
785
add =>
Events
.AddHandler(s_dragLeaveEvent, value);
786
remove =>
Events
.RemoveHandler(s_dragLeaveEvent, value);
838
add =>
Events
.AddHandler(s_enabledChangedEvent, value);
839
remove =>
Events
.RemoveHandler(s_enabledChangedEvent, value);
844
add =>
Events
.AddHandler(s_internalEnabledChangedEvent, value);
845
remove =>
Events
.RemoveHandler(s_internalEnabledChangedEvent, value);
892
add =>
Events
.AddHandler(s_foreColorChangedEvent, value);
893
remove =>
Events
.RemoveHandler(s_foreColorChangedEvent, value);
936
add =>
Events
.AddHandler(s_giveFeedbackEvent, value);
937
remove =>
Events
.RemoveHandler(s_giveFeedbackEvent, value);
1254
add =>
Events
.AddHandler(s_locationChangedEvent, value);
1255
remove =>
Events
.RemoveHandler(s_locationChangedEvent, value);
1318
add =>
Events
.AddHandler(s_mouseDownEvent, value);
1319
remove =>
Events
.RemoveHandler(s_mouseDownEvent, value);
1329
add =>
Events
.AddHandler(s_mouseEnterEvent, value);
1330
remove =>
Events
.RemoveHandler(s_mouseEnterEvent, value);
1340
add =>
Events
.AddHandler(s_mouseLeaveEvent, value);
1341
remove =>
Events
.RemoveHandler(s_mouseLeaveEvent, value);
1351
add =>
Events
.AddHandler(s_mouseHoverEvent, value);
1352
remove =>
Events
.RemoveHandler(s_mouseHoverEvent, value);
1362
add =>
Events
.AddHandler(s_mouseMoveEvent, value);
1363
remove =>
Events
.RemoveHandler(s_mouseMoveEvent, value);
1373
add =>
Events
.AddHandler(s_mouseUpEvent, value);
1374
remove =>
Events
.RemoveHandler(s_mouseUpEvent, value);
1453
add =>
Events
.AddHandler(s_ownerChangedEvent, value);
1454
remove =>
Events
.RemoveHandler(s_ownerChangedEvent, value);
1461
add =>
Events
.AddHandler(s_paintEvent, value);
1462
remove =>
Events
.RemoveHandler(s_paintEvent, value);
1594
add =>
Events
.AddHandler(s_queryContinueDragEvent, value);
1595
remove =>
Events
.RemoveHandler(s_queryContinueDragEvent, value);
1602
add =>
Events
.AddHandler(s_queryAccessibilityHelpEvent, value);
1603
remove =>
Events
.RemoveHandler(s_queryAccessibilityHelpEvent, value);
1735
add =>
Events
.AddHandler(s_rightToLeftChangedEvent, value);
1736
remove =>
Events
.RemoveHandler(s_rightToLeftChangedEvent, value);
1782
add =>
Events
.AddHandler(s_selectedChangedEvent, value);
1783
remove =>
Events
.RemoveHandler(s_selectedChangedEvent, value);
1894
add =>
Events
.AddHandler(s_textChangedEvent, value);
1895
remove =>
Events
.RemoveHandler(s_textChangedEvent, value);
1993
add =>
Events
.AddHandler(s_visibleChangedEvent, value);
1994
remove =>
Events
.RemoveHandler(s_visibleChangedEvent, value);
2696
=> ((EventHandler?)
Events
[s_commandCanExecuteChangedEvent])?.Invoke(this, e);
2771
=> ((GiveFeedbackEventHandler?)
Events
[s_giveFeedbackEvent])?.Invoke(this, giveFeedbackEvent);
3069
internal void RaiseCancelEvent(object key, CancelEventArgs e) => ((CancelEventHandler?)
Events
[key])?.Invoke(this, e);
3071
internal void RaiseDragEvent(object key, DragEventArgs e) => ((DragEventHandler?)
Events
[key])?.Invoke(this, e);
3073
internal void RaiseKeyEvent(object key, KeyEventArgs e) => ((KeyEventHandler?)
Events
[key])?.Invoke(this, e);
3075
internal void RaiseKeyPressEvent(object key, KeyPressEventArgs e) => ((KeyPressEventHandler?)
Events
[key])?.Invoke(this, e);
3077
internal void RaiseMouseEvent(object key, MouseEventArgs e) => ((MouseEventHandler?)
Events
[key])?.Invoke(this, e);
3079
internal void RaisePaintEvent(object key, PaintEventArgs e) => ((PaintEventHandler?)
Events
[key])?.Invoke(this, e);
3082
((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)
666
add =>
Events
.AddHandler(s_rightToLeftChangedEvent, value);
667
remove =>
Events
.RemoveHandler(s_rightToLeftChangedEvent, value);
674
add =>
Events
.AddHandler(s_scrollEvent, value);
675
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
690
add =>
Events
.AddHandler(s_valueChangedEvent, value);
691
remove =>
Events
.RemoveHandler(s_valueChangedEvent, value);
894
if (
Events
[s_rightToLeftChangedEvent] is EventHandler eh)
907
((EventHandler?)
Events
[s_scrollEvent])?.Invoke(this, e);
989
((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)
49
add =>
Events
.AddHandler(s_helpRequestEvent, value);
50
remove =>
Events
.RemoveHandler(s_helpRequestEvent, value);
112
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)
992
add =>
Events
.AddHandler(s_helpButtonChangedEvent, value);
993
remove =>
Events
.RemoveHandler(s_helpButtonChangedEvent, value);
1179
add =>
Events
.AddHandler(s_maximizeBoundsChangedEvent, value);
1180
remove =>
Events
.RemoveHandler(s_maximizeBoundsChangedEvent, value);
1254
add =>
Events
.AddHandler(s_maximumSizeChangedEvent, value);
1255
remove =>
Events
.RemoveHandler(s_maximumSizeChangedEvent, value);
1385
add =>
Events
.AddHandler(s_minimumSizeChangedEvent, value);
1386
remove =>
Events
.RemoveHandler(s_minimumSizeChangedEvent, value);
2227
if (
Events
[s_formCornerPreferenceChanged] is EventHandler eventHandler)
2309
if (
Events
[s_formBorderColorChanged] is EventHandler eventHandler)
2372
if (
Events
[s_formCaptionBackColorChanged] is EventHandler eventHandler)
2435
if (
Events
[s_formCaptionTextColorChanged] is EventHandler eventHandler)
2544
add =>
Events
.AddHandler(s_activatedEvent, value);
2545
remove =>
Events
.RemoveHandler(s_activatedEvent, value);
2562
add =>
Events
.AddHandler(s_closingEvent, value);
2563
remove =>
Events
.RemoveHandler(s_closingEvent, value);
2580
add =>
Events
.AddHandler(s_closedEvent, value);
2581
remove =>
Events
.RemoveHandler(s_closedEvent, value);
2591
add =>
Events
.AddHandler(s_deactivateEvent, value);
2592
remove =>
Events
.RemoveHandler(s_deactivateEvent, value);
2602
add =>
Events
.AddHandler(s_formClosingEvent, value);
2603
remove =>
Events
.RemoveHandler(s_formClosingEvent, value);
2614
add =>
Events
.AddHandler(s_formBorderColorChanged, value);
2615
remove =>
Events
.RemoveHandler(s_formBorderColorChanged, value);
2626
add =>
Events
.AddHandler(s_formCaptionBackColorChanged, value);
2627
remove =>
Events
.RemoveHandler(s_formCaptionBackColorChanged, value);
2638
add =>
Events
.AddHandler(s_formCaptionTextColorChanged, value);
2639
remove =>
Events
.RemoveHandler(s_formCaptionTextColorChanged, value);
2650
add =>
Events
.AddHandler(s_formCornerPreferenceChanged, value);
2651
remove =>
Events
.RemoveHandler(s_formCornerPreferenceChanged, value);
2661
add =>
Events
.AddHandler(s_formClosedEvent, value);
2662
remove =>
Events
.RemoveHandler(s_formClosedEvent, value);
2672
add =>
Events
.AddHandler(s_loadEvent, value);
2673
remove =>
Events
.RemoveHandler(s_loadEvent, value);
2684
add =>
Events
.AddHandler(s_mdiChildActivateEvent, value);
2685
remove =>
Events
.RemoveHandler(s_mdiChildActivateEvent, value);
2696
add =>
Events
.AddHandler(s_menuCompleteEvent, value);
2697
remove =>
Events
.RemoveHandler(s_menuCompleteEvent, value);
2708
add =>
Events
.AddHandler(s_menuStartEvent, value);
2709
remove =>
Events
.RemoveHandler(s_menuStartEvent, value);
2719
add =>
Events
.AddHandler(s_inputLanguageChangeEvent, value);
2720
remove =>
Events
.RemoveHandler(s_inputLanguageChangeEvent, value);
2731
add =>
Events
.AddHandler(s_inputLanguageChangeRequestEvent, value);
2732
remove =>
Events
.RemoveHandler(s_inputLanguageChangeRequestEvent, value);
2739
add =>
Events
.AddHandler(s_rightToLeftLayoutChangedEvent, value);
2740
remove =>
Events
.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
2750
add =>
Events
.AddHandler(s_shownEvent, value);
2751
remove =>
Events
.RemoveHandler(s_shownEvent, value);
3940
((EventHandler?)
Events
[s_activatedEvent])?.Invoke(this, e);
3992
((CancelEventHandler?)
Events
[s_closingEvent])?.Invoke(this, e);
4006
((EventHandler?)
Events
[s_closedEvent])?.Invoke(this, e);
4015
((FormClosingEventHandler?)
Events
[s_formClosingEvent])?.Invoke(this, e);
4029
((FormClosedEventHandler?)
Events
[s_formClosedEvent])?.Invoke(this, e);
4069
((EventHandler?)
Events
[s_deactivateEvent])?.Invoke(this, e);
4192
((CancelEventHandler?)
Events
[s_helpButtonChangedEvent])?.Invoke(this, e);
4253
EventHandler? handler = (EventHandler?)
Events
[s_loadEvent];
4291
if (
Events
[s_maximizeBoundsChangedEvent] is EventHandler eh)
4300
if (
Events
[s_maximumSizeChangedEvent] is EventHandler eh)
4309
if (
Events
[s_minimumSizeChangedEvent] is EventHandler eh)
4322
((InputLanguageChangedEventHandler?)
Events
[s_inputLanguageChangeEvent])?.Invoke(this, e);
4332
((InputLanguageChangingEventHandler?)
Events
[s_inputLanguageChangeRequestEvent])?.Invoke(this, e);
4372
((EventHandler?)
Events
[s_mdiChildActivateEvent])?.Invoke(this, e);
4381
EventHandler? handler = (EventHandler?)
Events
[s_menuStartEvent];
4391
((EventHandler?)
Events
[s_menuCompleteEvent])?.Invoke(this, e);
4463
((DpiChangedEventHandler?)
Events
[s_dpiChangedEvent])?.Invoke(this, e);
4511
add =>
Events
.AddHandler(s_dpiChangedEvent, value);
4512
remove =>
Events
.RemoveHandler(s_dpiChangedEvent, value);
4600
if (
Events
[s_rightToLeftLayoutChangedEvent] is EventHandler eh)
4621
((EventHandler?)
Events
[s_shownEvent])?.Invoke(this, e);
4965
add =>
Events
.AddHandler(s_resizeBeginEvent, value);
4966
remove =>
Events
.RemoveHandler(s_resizeBeginEvent, value);
4976
add =>
Events
.AddHandler(s_resizeEndEvent, value);
4977
remove =>
Events
.RemoveHandler(s_resizeEndEvent, value);
6306
((EventHandler?)
Events
[s_resizeBeginEvent])?.Invoke(this, e);
6319
((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)
694
((EventHandler?)
Events
[s_paddingChangedEvent])?.Invoke(this, e);
923
add =>
Events
.AddHandler(s_scrollEvent, value);
924
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
932
((ScrollEventHandler?)
Events
[s_scrollEvent])?.Invoke(this, se);
System\Windows\Forms\Scrolling\ScrollBar.cs (6)
459
add =>
Events
.AddHandler(s_scrollEvent, value);
460
remove =>
Events
.RemoveHandler(s_scrollEvent, value);
472
add =>
Events
.AddHandler(s_valueChangedEvent, value);
473
remove =>
Events
.RemoveHandler(s_valueChangedEvent, value);
524
=> ((ScrollEventHandler?)
Events
[s_scrollEvent])?.Invoke(this, se);
579
=> ((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)
1038
public new EventHandlerList Events => base.
Events
;
System.Windows.Forms.Tests (72)
System\Windows\Forms\AxHostTests.cs (1)
3196
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\BindingSourceTests.cs (1)
839
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ButtonBaseTests.cs (1)
9299
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ButtonTests.cs (1)
3707
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\CheckBoxTests.cs (1)
662
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ColorDialogTests.cs (1)
369
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ColumnHeaderTests.cs (1)
1661
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ComboBoxTests.cs (1)
2851
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\CommonDialogTests.cs (1)
273
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ContainerControlTests.cs (1)
1441
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ControlTests.cs (1)
1174
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2134
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\DateTimePickerTests.cs (1)
1036
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
410
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
913
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\Design\EventsTabTests.cs (9)
146
add =>
Events
.AddHandler(nameof(ActiveDesignerChanged), value);
147
remove =>
Events
.RemoveHandler(nameof(ActiveDesignerChanged), value);
152
add =>
Events
.AddHandler(nameof(DesignerCreated), value);
153
remove =>
Events
.RemoveHandler(nameof(DesignerCreated), value);
158
add =>
Events
.AddHandler(nameof(DesignerDisposed), value);
159
remove =>
Events
.RemoveHandler(nameof(DesignerDisposed), value);
164
add =>
Events
.AddHandler(nameof(SelectionChanged), value);
165
remove =>
Events
.RemoveHandler(nameof(SelectionChanged), value);
170
ActiveDesignerEventHandler handler = (ActiveDesignerEventHandler)
Events
[nameof(ActiveDesignerChanged)];
System\Windows\Forms\DomainUpDownTests.cs (1)
1500
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ErrorProviderTests.cs (1)
1369
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FileDialogTests.cs (1)
832
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
460
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FontDialogTests.cs (1)
758
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\FormTests.cs (1)
2720
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\GroupBoxTests.cs (1)
2325
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\HelpProviderTests.cs (1)
568
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\HScrollBarTests.cs (1)
274
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\LabelTests.cs (1)
909
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListBoxTests.cs (1)
6432
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListControlTests.cs (1)
2940
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ListViewTests.cs (1)
6127
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\MenuStripTests.cs (1)
886
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\MonthCalendarTests.cs (1)
4756
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PanelTests.cs (1)
1182
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PictureBoxTests.cs (1)
2868
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ProgressBarTests.cs (1)
2612
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\PropertyGridTests.cs (1)
4179
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\RadioButtonTests.cs (1)
1555
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\RichTextBoxTests.cs (1)
10952
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ScrollableControlTests.cs (1)
2600
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ScrollBarTests.cs (1)
3188
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\SplitterTests.cs (1)
2333
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\StatusStripTests.cs (1)
1308
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TabControlTests.cs (1)
5749
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2199
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TabPageTests.cs (1)
5263
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripButtonTests.cs (1)
1736
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2044
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4655
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
525
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5126
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripItemTests.cs (1)
15513
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
445
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripPanelTests.cs (1)
387
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
1647
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolStripTests.cs (1)
7562
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\ToolTipTests.cs (1)
921
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\TreeViewTests.cs (1)
7600
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\UpDownBaseTests.cs (1)
3133
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\UserControlTests.cs (1)
1825
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\VScrollBarTests.cs (1)
264
public new EventHandlerList Events => base.
Events
;
System\Windows\Forms\WebBrowserTests.cs (1)
4694
public new EventHandlerList Events => base.
Events
;
TextBoxBaseTests.cs (1)
7711
public new EventHandlerList Events => base.
Events
;
TextBoxTests.cs (1)
709
public new EventHandlerList Events => base.
Events
;
TrackBarTests.cs (1)
3306
public new EventHandlerList Events => base.
Events
;
WebBrowserBaseTests.cs (1)
914
public new EventHandlerList Events => base.
Events
;