1169 references to Events
System.ComponentModel.Primitives (2)
System\ComponentModel\Component.cs (2)
48add => Events.AddHandler(s_eventDisposed, value); 49remove => Events.RemoveHandler(s_eventDisposed, value);
System.Data.Common (3)
System\Data\Common\DataAdapter.cs (3)
196Events.AddHandler(s_eventFillError, value); 200Events.RemoveHandler(s_eventFillError, value); 741((FillErrorEventHandler?)Events[s_eventFillError])?.Invoke(this, value);
System.Data.Odbc (8)
System\Data\Odbc\OdbcDataAdapter.cs (8)
104Events.AddHandler(s_eventRowUpdated, value); 108Events.RemoveHandler(s_eventRowUpdated, value); 116OdbcRowUpdatingEventHandler? handler = (OdbcRowUpdatingEventHandler?)Events[s_eventRowUpdating]; 126Events.RemoveHandler(s_eventRowUpdating, d); 129Events.AddHandler(s_eventRowUpdating, value); 133Events.RemoveHandler(s_eventRowUpdating, value); 155OdbcRowUpdatedEventHandler? handler = (OdbcRowUpdatedEventHandler?)Events[s_eventRowUpdated]; 165OdbcRowUpdatingEventHandler? 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)
53contextMenuStrip.Events.AddHandlers(Events);
System\Windows\Forms\Control.cs (211)
641add => Events.AddHandler(s_autoSizeChangedEvent, value); 642remove => Events.RemoveHandler(s_autoSizeChangedEvent, value); 828add => Events.AddHandler(s_backColorEvent, value); 829remove => Events.RemoveHandler(s_backColorEvent, value); 858add => Events.AddHandler(s_backgroundImageEvent, value); 859remove => Events.RemoveHandler(s_backgroundImageEvent, value); 902add => Events.AddHandler(s_backgroundImageLayoutEvent, value); 903remove => Events.RemoveHandler(s_backgroundImageLayoutEvent, value); 985add => Events.AddHandler(s_bindingContextEvent, value); 986remove => Events.RemoveHandler(s_bindingContextEvent, value); 1097add => Events.AddHandler(s_causesValidationEvent, value); 1098remove => Events.RemoveHandler(s_causesValidationEvent, value); 1187add => Events.AddHandler(s_clientSizeEvent, value); 1188remove => Events.RemoveHandler(s_clientSizeEvent, value); 1260add => Events.AddHandler(s_contextMenuStripEvent, value); 1261remove => Events.RemoveHandler(s_contextMenuStripEvent, value); 1513add => Events.AddHandler(s_cursorEvent, value); 1514remove => Events.RemoveHandler(s_cursorEvent, value); 1713add => Events.AddHandler(s_dockEvent, value); 1714remove => Events.RemoveHandler(s_dockEvent, value); 1781add => Events.AddHandler(s_enabledEvent, value); 1782remove => Events.RemoveHandler(s_enabledEvent, value); 1905add => Events.AddHandler(s_fontEvent, value); 1906remove => Events.RemoveHandler(s_fontEvent, value); 2044add => Events.AddHandler(s_foreColorEvent, value); 2045remove => Events.RemoveHandler(s_foreColorEvent, value); 2429add => Events.AddHandler(s_locationEvent, value); 2430remove => Events.RemoveHandler(s_locationEvent, value); 2460add => Events.AddHandler(s_marginChangedEvent, value); 2461remove => Events.RemoveHandler(s_marginChangedEvent, value); 2764add => Events.AddHandler(s_regionChangedEvent, value); 2765remove => Events.RemoveHandler(s_regionChangedEvent, value); 2892add => Events.AddHandler(s_rightToLeftEvent, value); 2893remove => Events.RemoveHandler(s_rightToLeftEvent, value); 3021add => Events.AddHandler(s_sizeEvent, value); 3022remove => Events.RemoveHandler(s_sizeEvent, value); 3051add => Events.AddHandler(s_tabIndexEvent, value); 3052remove => Events.RemoveHandler(s_tabIndexEvent, value); 3098add => Events.AddHandler(s_tabStopEvent, value); 3099remove => Events.RemoveHandler(s_tabStopEvent, value); 3161add => Events.AddHandler(s_textEvent, value); 3162remove => Events.RemoveHandler(s_textEvent, value); 3458add => Events.AddHandler(s_visibleEvent, value); 3459remove => Events.RemoveHandler(s_visibleEvent, value); 3612add => Events.AddHandler(s_clickEvent, value); 3613remove => Events.RemoveHandler(s_clickEvent, value); 3625add => Events.AddHandler(s_controlAddedEvent, value); 3626remove => Events.RemoveHandler(s_controlAddedEvent, value); 3638add => Events.AddHandler(s_controlRemovedEvent, value); 3639remove => Events.RemoveHandler(s_controlRemovedEvent, value); 3651add => Events.AddHandler(s_dataContextEvent, value); 3652remove => Events.RemoveHandler(s_dataContextEvent, value); 3659add => Events.AddHandler(s_dragDropEvent, value); 3660remove => Events.RemoveHandler(s_dragDropEvent, value); 3667add => Events.AddHandler(s_dragEnterEvent, value); 3668remove => Events.RemoveHandler(s_dragEnterEvent, value); 3675add => Events.AddHandler(s_dragOverEvent, value); 3676remove => Events.RemoveHandler(s_dragOverEvent, value); 3683add => Events.AddHandler(s_dragLeaveEvent, value); 3684remove => Events.RemoveHandler(s_dragLeaveEvent, value); 3691add => Events.AddHandler(s_giveFeedbackEvent, value); 3692remove => Events.RemoveHandler(s_giveFeedbackEvent, value); 3704add => Events.AddHandler(s_handleCreatedEvent, value); 3705remove => Events.RemoveHandler(s_handleCreatedEvent, value); 3717add => Events.AddHandler(s_handleDestroyedEvent, value); 3718remove => Events.RemoveHandler(s_handleDestroyedEvent, value); 3725add => Events.AddHandler(s_helpRequestedEvent, value); 3726remove => Events.RemoveHandler(s_helpRequestedEvent, value); 3735add => Events.AddHandler(s_invalidatedEvent, value); 3736remove => Events.RemoveHandler(s_invalidatedEvent, value); 3779add => Events.AddHandler(s_paddingChangedEvent, value); 3780remove => Events.RemoveHandler(s_paddingChangedEvent, value); 3787add => Events.AddHandler(s_paintEvent, value); 3788remove => Events.RemoveHandler(s_paintEvent, value); 3795add => Events.AddHandler(s_queryContinueDragEvent, value); 3796remove => Events.RemoveHandler(s_queryContinueDragEvent, value); 3803add => Events.AddHandler(s_queryAccessibilityHelpEvent, value); 3804remove => Events.RemoveHandler(s_queryAccessibilityHelpEvent, value); 3814add => Events.AddHandler(s_doubleClickEvent, value); 3815remove => Events.RemoveHandler(s_doubleClickEvent, value); 3825add => Events.AddHandler(s_enterEvent, value); 3826remove => Events.RemoveHandler(s_enterEvent, value); 3838add => Events.AddHandler(s_gotFocusEvent, value); 3839remove => Events.RemoveHandler(s_gotFocusEvent, value); 3849add => Events.AddHandler(s_keyDownEvent, value); 3850remove => Events.RemoveHandler(s_keyDownEvent, value); 3860add => Events.AddHandler(s_keyPressEvent, value); 3861remove => Events.RemoveHandler(s_keyPressEvent, value); 3871add => Events.AddHandler(s_keyUpEvent, value); 3872remove => Events.RemoveHandler(s_keyUpEvent, value); 3879add => Events.AddHandler(s_layoutEvent, value); 3880remove => Events.RemoveHandler(s_layoutEvent, value); 3890add => Events.AddHandler(s_leaveEvent, value); 3891remove => Events.RemoveHandler(s_leaveEvent, value); 3903add => Events.AddHandler(s_lostFocusEvent, value); 3904remove => Events.RemoveHandler(s_lostFocusEvent, value); 3914add => Events.AddHandler(s_mouseClickEvent, value); 3915remove => Events.RemoveHandler(s_mouseClickEvent, value); 3925add => Events.AddHandler(s_mouseDoubleClickEvent, value); 3926remove => Events.RemoveHandler(s_mouseDoubleClickEvent, value); 3936add => Events.AddHandler(s_mouseCaptureChangedEvent, value); 3937remove => Events.RemoveHandler(s_mouseCaptureChangedEvent, value); 3948add => Events.AddHandler(s_mouseDownEvent, value); 3949remove => Events.RemoveHandler(s_mouseDownEvent, value); 3959add => Events.AddHandler(s_mouseEnterEvent, value); 3960remove => Events.RemoveHandler(s_mouseEnterEvent, value); 3970add => Events.AddHandler(s_mouseLeaveEvent, value); 3971remove => Events.RemoveHandler(s_mouseLeaveEvent, value); 3983add => Events.AddHandler(s_dpiChangedBeforeParentEvent, value); 3984remove => Events.RemoveHandler(s_dpiChangedBeforeParentEvent, value); 3996add => Events.AddHandler(s_dpiChangedAfterParentEvent, value); 3997remove => Events.RemoveHandler(s_dpiChangedAfterParentEvent, value); 4007add => Events.AddHandler(s_mouseHoverEvent, value); 4008remove => Events.RemoveHandler(s_mouseHoverEvent, value); 4018add => Events.AddHandler(s_mouseMoveEvent, value); 4019remove => Events.RemoveHandler(s_mouseMoveEvent, value); 4029add => Events.AddHandler(s_mouseUpEvent, value); 4030remove => Events.RemoveHandler(s_mouseUpEvent, value); 4042add => Events.AddHandler(s_mouseWheelEvent, value); 4043remove => Events.RemoveHandler(s_mouseWheelEvent, value); 4053add => Events.AddHandler(s_moveEvent, value); 4054remove => Events.RemoveHandler(s_moveEvent, value); 4064add => Events.AddHandler(s_previewKeyDownEvent, value); 4065remove => Events.RemoveHandler(s_previewKeyDownEvent, value); 4076add => Events.AddHandler(s_resizeEvent, value); 4077remove => Events.RemoveHandler(s_resizeEvent, value); 4084add => Events.AddHandler(s_changeUICuesEvent, value); 4085remove => Events.RemoveHandler(s_changeUICuesEvent, value); 4092add => Events.AddHandler(s_styleChangedEvent, value); 4093remove => Events.RemoveHandler(s_styleChangedEvent, value); 4100add => Events.AddHandler(s_systemColorsChangedEvent, value); 4101remove => Events.RemoveHandler(s_systemColorsChangedEvent, value); 4111add => Events.AddHandler(s_validatingEvent, value); 4112remove => Events.RemoveHandler(s_validatingEvent, value); 4122add => Events.AddHandler(s_validatedEvent, value); 4123remove => Events.RemoveHandler(s_validatedEvent, value); 4240add => Events.AddHandler(s_parentEvent, value); 4241remove => 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); 6567if (Events[s_autoSizeChangedEvent] is EventHandler eh) 6596if (Events[s_backColorEvent] is EventHandler eh) 6620if (Events[s_backgroundImageEvent] is EventHandler eh) 6644if (Events[s_backgroundImageLayoutEvent] is EventHandler eh) 6663if (Events[s_bindingContextEvent] is EventHandler eh) 6680if (Events[s_causesValidationEvent] is EventHandler eh) 6698if (Events[s_contextMenuStripEvent] is EventHandler eh) 6707if (Events[s_cursorEvent] is EventHandler eh) 6729if (Events[s_dataContextEvent] is EventHandler eventHandler) 6746if (Events[s_dockEvent] is EventHandler eh) 6778if (Events[s_enabledEvent] is EventHandler eh) 6819if (Events[s_fontEvent] is EventHandler eh) 6849if (Events[s_foreColorEvent] is EventHandler eh) 6877if (Events[s_rightToLeftEvent] is EventHandler eh) 7112if (Events[s_tabIndexEvent] is EventHandler eh) 7121if (Events[s_tabStopEvent] is EventHandler eh) 7130if (Events[s_textEvent] is EventHandler eh) 7162if (Events[s_visibleEvent] is EventHandler eh) 7199if (Events[s_parentEvent] is EventHandler eh) 7218((EventHandler?)Events[s_clickEvent])?.Invoke(this, e); 7224if (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); 7413if (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); 7588HelpEventHandler? 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); 7949if (Events[s_regionChangedEvent] is EventHandler eh) 7968((EventHandler?)Events[s_resizeEvent])?.Invoke(this, e); 7977((PreviewKeyDownEventHandler?)Events[s_previewKeyDownEvent])?.Invoke(this, e); 7985if (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)
218add => Events.AddHandler(s_imeModeChangedEvent, value); 219remove => Events.RemoveHandler(s_imeModeChangedEvent, value); 484((EventHandler?)Events[s_imeModeChangedEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (8)
205add => Events.AddHandler(s_commandCanExecuteChangedEvent, value); 206remove => Events.RemoveHandler(s_commandCanExecuteChangedEvent, value); 217add => Events.AddHandler(s_commandChangedEvent, value); 218remove => Events.RemoveHandler(s_commandChangedEvent, value); 251add => Events.AddHandler(s_commandParameterChangedEvent, value); 252remove => Events.RemoveHandler(s_commandParameterChangedEvent, value); 1047((EventHandler?)Events[s_commandCanExecuteChangedEvent])?.Invoke(this, e); 1213private void RaiseEvent(object key, EventArgs e) => ((EventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (9)
94add => Events.AddHandler(s_appearanceChangedEvent, value); 95remove => Events.RemoveHandler(s_appearanceChangedEvent, value); 356add => Events.AddHandler(s_checkedChangedEvent, value); 357remove => Events.RemoveHandler(s_checkedChangedEvent, value); 366add => Events.AddHandler(s_checkStateChangedEvent, value); 367remove => Events.RemoveHandler(s_checkStateChangedEvent, value); 374if (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)
111add => Events.AddHandler(s_appearanceChangeEvent, value); 112remove => Events.RemoveHandler(s_appearanceChangeEvent, value); 320add => Events.AddHandler(s_checkedChangedEvent, value); 321remove => Events.RemoveHandler(s_checkedChangedEvent, value); 353((EventHandler?)Events[s_checkedChangedEvent])?.Invoke(this, e); 461if (Events[s_appearanceChangeEvent] is EventHandler eh)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (25)
1223add => Events.AddHandler(s_drawItemEvent, value); 1224remove => Events.RemoveHandler(s_drawItemEvent, value); 1231add => Events.AddHandler(s_dropDownEvent, value); 1232remove => Events.RemoveHandler(s_dropDownEvent, value); 1241Events.AddHandler(s_measureItemEvent, value); 1246Events.RemoveHandler(s_measureItemEvent, value); 1255add => Events.AddHandler(s_selectedIndexChangedEvent, value); 1256remove => Events.RemoveHandler(s_selectedIndexChangedEvent, value); 1263add => Events.AddHandler(s_selectionChangedComittedEvent, value); 1264remove => Events.RemoveHandler(s_selectionChangedComittedEvent, value); 1271add => Events.AddHandler(s_dropDownStyleEvent, value); 1272remove => Events.RemoveHandler(s_dropDownStyleEvent, value); 1295add => Events.AddHandler(s_textUpdateEvent, value); 1296remove => Events.RemoveHandler(s_textUpdateEvent, value); 1307add => Events.AddHandler(s_dropDownClosedEvent, value); 1308remove => 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)
678add => Events.AddHandler(s_allowUserToAddRowsChangedEvent, value); 679remove => Events.RemoveHandler(s_allowUserToAddRowsChangedEvent, value); 706add => Events.AddHandler(s_allowUserToDeleteRowsChangedEvent, value); 707remove => Events.RemoveHandler(s_allowUserToDeleteRowsChangedEvent, value); 733add => Events.AddHandler(s_allowUserToOrderColumnsChangedEvent, value); 734remove => Events.RemoveHandler(s_allowUserToOrderColumnsChangedEvent, value); 761add => Events.AddHandler(s_allowUserToResizeColumnsChangedEvent, value); 762remove => Events.RemoveHandler(s_allowUserToResizeColumnsChangedEvent, value); 789add => Events.AddHandler(s_allowUserToResizeRowsChangedEvent, value); 790remove => Events.RemoveHandler(s_allowUserToResizeRowsChangedEvent, value); 828add => Events.AddHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value); 829remove => Events.RemoveHandler(s_alternatingRowsDefaultCellStyleChangedEvent, value); 856add => Events.AddHandler(s_autoGenerateColumnsChangedEvent, value); 857remove => Events.RemoveHandler(s_autoGenerateColumnsChangedEvent, value); 936add => Events.AddHandler(s_autosizeColumnsModeChangedEvent, value); 937remove => Events.RemoveHandler(s_autosizeColumnsModeChangedEvent, value); 984add => Events.AddHandler(s_autosizeRowsModeChangedEvent, value); 985remove => Events.RemoveHandler(s_autosizeRowsModeChangedEvent, value); 1032add => Events.AddHandler(s_backgroundColorChangedEvent, value); 1033remove => Events.RemoveHandler(s_backgroundColorChangedEvent, value); 1105add => Events.AddHandler(s_borderStyleChangedEvent, value); 1106remove => Events.RemoveHandler(s_borderStyleChangedEvent, value); 1325add => Events.AddHandler(s_cellBorderStyleChangedEvent, value); 1326remove => Events.RemoveHandler(s_cellBorderStyleChangedEvent, value); 1500add => Events.AddHandler(s_columnHeadersBorderStyleChangedEvent, value); 1501remove => Events.RemoveHandler(s_columnHeadersBorderStyleChangedEvent, value); 1561add => Events.AddHandler(s_columnHeadersDefaultCellStyleChangedEvent, value); 1562remove => Events.RemoveHandler(s_columnHeadersDefaultCellStyleChangedEvent, value); 1591add => Events.AddHandler(s_columnHeadersHeightChangedEvent, value); 1592remove => Events.RemoveHandler(s_columnHeadersHeightChangedEvent, value); 1626add => Events.AddHandler(s_columnHeadersHeightSizeModeChangedEvent, value); 1627remove => Events.RemoveHandler(s_columnHeadersHeightSizeModeChangedEvent, value); 1898add => Events.AddHandler(s_dataMemberChangedEvent, value); 1899remove => Events.RemoveHandler(s_dataMemberChangedEvent, value); 1954add => Events.AddHandler(s_dataSourceChangedEvent, value); 1955remove => Events.RemoveHandler(s_dataSourceChangedEvent, value); 2074add => Events.AddHandler(s_defaultCellStyleChangedEvent, value); 2075remove => Events.RemoveHandler(s_defaultCellStyleChangedEvent, value); 2164add => Events.AddHandler(s_editModeChangedEvent, value); 2165remove => Events.RemoveHandler(s_editModeChangedEvent, value); 2657add => Events.AddHandler(s_gridColorChangedEvent, value); 2658remove => Events.RemoveHandler(s_gridColorChangedEvent, value); 3005add => Events.AddHandler(s_multiselectChangedEvent, value); 3006remove => Events.RemoveHandler(s_multiselectChangedEvent, value); 3129add => Events.AddHandler(s_readOnlyChangedEvent, value); 3130remove => Events.RemoveHandler(s_readOnlyChangedEvent, value); 3286add => Events.AddHandler(s_rowHeadersBorderStyleChangedEvent, value); 3287remove => Events.RemoveHandler(s_rowHeadersBorderStyleChangedEvent, value); 3325add => Events.AddHandler(s_rowHeadersDefaultCellStyleChangedEvent, value); 3326remove => Events.RemoveHandler(s_rowHeadersDefaultCellStyleChangedEvent, value); 3428add => Events.AddHandler(s_rowHeadersWidthChangedEvent, value); 3429remove => Events.RemoveHandler(s_rowHeadersWidthChangedEvent, value); 3468add => Events.AddHandler(s_rowHeadersWidthSizeModeChangedEvent, value); 3469remove => Events.RemoveHandler(s_rowHeadersWidthSizeModeChangedEvent, value); 3518add => Events.AddHandler(s_rowsDefaultCellStyleChangedEvent, value); 3519remove => Events.RemoveHandler(s_rowsDefaultCellStyleChangedEvent, value); 4161add => Events.AddHandler(s_autosizeColumnModeChangedEvent, value); 4162remove => Events.RemoveHandler(s_autosizeColumnModeChangedEvent, value); 4169add => Events.AddHandler(s_cancelRowEditEvent, value); 4170remove => Events.RemoveHandler(s_cancelRowEditEvent, value); 4177add => Events.AddHandler(s_cellBeginEditEvent, value); 4178remove => Events.RemoveHandler(s_cellBeginEditEvent, value); 4185add => Events.AddHandler(s_cellClickEvent, value); 4186remove => Events.RemoveHandler(s_cellClickEvent, value); 4193add => Events.AddHandler(s_cellContentClickEvent, value); 4194remove => Events.RemoveHandler(s_cellContentClickEvent, value); 4201add => Events.AddHandler(s_cellContentDoubleClickEvent, value); 4202remove => Events.RemoveHandler(s_cellContentDoubleClickEvent, value); 4210add => Events.AddHandler(s_cellContextMenuStripChangedEvent, value); 4211remove => Events.RemoveHandler(s_cellContextMenuStripChangedEvent, value); 4219add => Events.AddHandler(s_cellContextMenuStripNeededEvent, value); 4220remove => Events.RemoveHandler(s_cellContextMenuStripNeededEvent, value); 4227add => Events.AddHandler(s_cellDoubleClickEvent, value); 4228remove => Events.RemoveHandler(s_cellDoubleClickEvent, value); 4235add => Events.AddHandler(s_cellEndEditEvent, value); 4236remove => Events.RemoveHandler(s_cellEndEditEvent, value); 4243add => Events.AddHandler(s_cellEnterEvent, value); 4244remove => Events.RemoveHandler(s_cellEnterEvent, value); 4251add => Events.AddHandler(s_cellErrorTextChangedEvent, value); 4252remove => Events.RemoveHandler(s_cellErrorTextChangedEvent, value); 4260add => Events.AddHandler(s_cellErrorTextNeededEvent, value); 4261remove => Events.RemoveHandler(s_cellErrorTextNeededEvent, value); 4268add => Events.AddHandler(s_cellFormattingEvent, value); 4269remove => Events.RemoveHandler(s_cellFormattingEvent, value); 4276add => Events.AddHandler(s_cellLeaveEvent, value); 4277remove => Events.RemoveHandler(s_cellLeaveEvent, value); 4284add => Events.AddHandler(s_cellMouseClickEvent, value); 4285remove => Events.RemoveHandler(s_cellMouseClickEvent, value); 4292add => Events.AddHandler(s_cellMouseDoubleClickEvent, value); 4293remove => Events.RemoveHandler(s_cellMouseDoubleClickEvent, value); 4300add => Events.AddHandler(s_cellMouseDownEvent, value); 4301remove => Events.RemoveHandler(s_cellMouseDownEvent, value); 4308add => Events.AddHandler(s_cellMouseEnterEvent, value); 4309remove => Events.RemoveHandler(s_cellMouseEnterEvent, value); 4316add => Events.AddHandler(s_cellMouseLeaveEvent, value); 4317remove => Events.RemoveHandler(s_cellMouseLeaveEvent, value); 4324add => Events.AddHandler(s_cellMouseMoveEvent, value); 4325remove => Events.RemoveHandler(s_cellMouseMoveEvent, value); 4332add => Events.AddHandler(s_cellMouseUpEvent, value); 4333remove => Events.RemoveHandler(s_cellMouseUpEvent, value); 4340add => Events.AddHandler(s_cellPaintingEvent, value); 4341remove => Events.RemoveHandler(s_cellPaintingEvent, value); 4348add => Events.AddHandler(s_cellParsingEvent, value); 4349remove => Events.RemoveHandler(s_cellParsingEvent, value); 4356add => Events.AddHandler(s_cellStateChangedEvent, value); 4357remove => Events.RemoveHandler(s_cellStateChangedEvent, value); 4364add => Events.AddHandler(s_cellStyleChangedEvent, value); 4365remove => Events.RemoveHandler(s_cellStyleChangedEvent, value); 4372add => Events.AddHandler(s_cellStyleContentChangedEvent, value); 4373remove => Events.RemoveHandler(s_cellStyleContentChangedEvent, value); 4380add => Events.AddHandler(s_cellTooltipTextChangedEvent, value); 4381remove => Events.RemoveHandler(s_cellTooltipTextChangedEvent, value); 4389add => Events.AddHandler(s_cellTooltipTextNeededEvent, value); 4390remove => Events.RemoveHandler(s_cellTooltipTextNeededEvent, value); 4397add => Events.AddHandler(s_cellValidatedEvent, value); 4398remove => Events.RemoveHandler(s_cellValidatedEvent, value); 4405add => Events.AddHandler(s_cellValidatingEvent, value); 4406remove => Events.RemoveHandler(s_cellValidatingEvent, value); 4413add => Events.AddHandler(s_cellValueChangedEvent, value); 4414remove => Events.RemoveHandler(s_cellValueChangedEvent, value); 4422add => Events.AddHandler(s_cellValueNeededEvent, value); 4423remove => Events.RemoveHandler(s_cellValueNeededEvent, value); 4431add => Events.AddHandler(s_cellValuePushedEvent, value); 4432remove => Events.RemoveHandler(s_cellValuePushedEvent, value); 4439add => Events.AddHandler(s_columnAddedEvent, value); 4440remove => Events.RemoveHandler(s_columnAddedEvent, value); 4447add => Events.AddHandler(s_columnContextMenuStripChangedEvent, value); 4448remove => Events.RemoveHandler(s_columnContextMenuStripChangedEvent, value); 4455add => Events.AddHandler(s_columnDataPropertyNameChangedEvent, value); 4456remove => Events.RemoveHandler(s_columnDataPropertyNameChangedEvent, value); 4463add => Events.AddHandler(s_columnDefaultCellStyleChangedEvent, value); 4464remove => Events.RemoveHandler(s_columnDefaultCellStyleChangedEvent, value); 4471add => Events.AddHandler(s_columnDisplayIndexChangedEvent, value); 4472remove => Events.RemoveHandler(s_columnDisplayIndexChangedEvent, value); 4479add => Events.AddHandler(s_columnDividerDoubleClickEvent, value); 4480remove => Events.RemoveHandler(s_columnDividerDoubleClickEvent, value); 4487add => Events.AddHandler(s_columnDividerWidthChangedEvent, value); 4488remove => Events.RemoveHandler(s_columnDividerWidthChangedEvent, value); 4495add => Events.AddHandler(s_columnHeaderMouseClickEvent, value); 4496remove => Events.RemoveHandler(s_columnHeaderMouseClickEvent, value); 4503add => Events.AddHandler(s_columnHeaderMouseDoubleClickEvent, value); 4504remove => Events.RemoveHandler(s_columnHeaderMouseDoubleClickEvent, value); 4511add => Events.AddHandler(s_columnHeaderCellChangedEvent, value); 4512remove => Events.RemoveHandler(s_columnHeaderCellChangedEvent, value); 4519add => Events.AddHandler(s_columnMinimumWidthChangedEvent, value); 4520remove => Events.RemoveHandler(s_columnMinimumWidthChangedEvent, value); 4527add => Events.AddHandler(s_columnNameChangedEvent, value); 4528remove => Events.RemoveHandler(s_columnNameChangedEvent, value); 4535add => Events.AddHandler(s_columnRemovedEvent, value); 4536remove => Events.RemoveHandler(s_columnRemovedEvent, value); 4543add => Events.AddHandler(s_columnSortModeChangedEvent, value); 4544remove => Events.RemoveHandler(s_columnSortModeChangedEvent, value); 4551add => Events.AddHandler(s_columnStateChangedEvent, value); 4552remove => Events.RemoveHandler(s_columnStateChangedEvent, value); 4559add => Events.AddHandler(s_columnTooltipTextChangedEvent, value); 4560remove => Events.RemoveHandler(s_columnTooltipTextChangedEvent, value); 4567add => Events.AddHandler(s_columnWidthChangedEvent, value); 4568remove => Events.RemoveHandler(s_columnWidthChangedEvent, value); 4575add => Events.AddHandler(s_currentCellChangedEvent, value); 4576remove => Events.RemoveHandler(s_currentCellChangedEvent, value); 4584add => Events.AddHandler(s_currentCellDirtyStateChangedEvent, value); 4585remove => Events.RemoveHandler(s_currentCellDirtyStateChangedEvent, value); 4592add => Events.AddHandler(s_dataBindingCompleteEvent, value); 4593remove => Events.RemoveHandler(s_dataBindingCompleteEvent, value); 4600add => Events.AddHandler(s_dataErrorEvent, value); 4601remove => Events.RemoveHandler(s_dataErrorEvent, value); 4609add => Events.AddHandler(s_defaultValuesNeededEvent, value); 4610remove => Events.RemoveHandler(s_defaultValuesNeededEvent, value); 4617add => Events.AddHandler(s_editingControlShowingEvent, value); 4618remove => Events.RemoveHandler(s_editingControlShowingEvent, value); 4625add => Events.AddHandler(s_newRowNeededEvent, value); 4626remove => Events.RemoveHandler(s_newRowNeededEvent, value); 4633add => Events.AddHandler(s_rowContextMenuStripChangedEvent, value); 4634remove => Events.RemoveHandler(s_rowContextMenuStripChangedEvent, value); 4642add => Events.AddHandler(s_rowContextMenuStripNeededEvent, value); 4643remove => Events.RemoveHandler(s_rowContextMenuStripNeededEvent, value); 4650add => Events.AddHandler(s_rowDefaultCellStyleChangedEvent, value); 4651remove => Events.RemoveHandler(s_rowDefaultCellStyleChangedEvent, value); 4659add => Events.AddHandler(s_rowDirtyStateNeededEvent, value); 4660remove => Events.RemoveHandler(s_rowDirtyStateNeededEvent, value); 4667add => Events.AddHandler(s_rowDividerDoubleClickEvent, value); 4668remove => Events.RemoveHandler(s_rowDividerDoubleClickEvent, value); 4675add => Events.AddHandler(s_rowDividerHeightChangedEvent, value); 4676remove => Events.RemoveHandler(s_rowDividerHeightChangedEvent, value); 4683add => Events.AddHandler(s_rowEnterEvent, value); 4684remove => Events.RemoveHandler(s_rowEnterEvent, value); 4691add => Events.AddHandler(s_rowErrorTextChangedEvent, value); 4692remove => Events.RemoveHandler(s_rowErrorTextChangedEvent, value); 4700add => Events.AddHandler(s_rowErrorTextNeededEvent, value); 4701remove => Events.RemoveHandler(s_rowErrorTextNeededEvent, value); 4708add => Events.AddHandler(s_rowHeaderMouseClickEvent, value); 4709remove => Events.RemoveHandler(s_rowHeaderMouseClickEvent, value); 4716add => Events.AddHandler(s_rowHeaderMouseDoubleClickEvent, value); 4717remove => Events.RemoveHandler(s_rowHeaderMouseDoubleClickEvent, value); 4724add => Events.AddHandler(s_rowHeaderCellChangedEvent, value); 4725remove => Events.RemoveHandler(s_rowHeaderCellChangedEvent, value); 4732add => Events.AddHandler(s_rowHeightChangedEvent, value); 4733remove => Events.RemoveHandler(s_rowHeightChangedEvent, value); 4741add => Events.AddHandler(s_rowHeightInfoNeededEvent, value); 4742remove => Events.RemoveHandler(s_rowHeightInfoNeededEvent, value); 4760add => Events.AddHandler(s_rowHeightInfoPushedEvent, value); 4761remove => Events.RemoveHandler(s_rowHeightInfoPushedEvent, value); 4768add => Events.AddHandler(s_rowLeaveEvent, value); 4769remove => Events.RemoveHandler(s_rowLeaveEvent, value); 4776add => Events.AddHandler(s_rowMinimumHeightChangeEvent, value); 4777remove => Events.RemoveHandler(s_rowMinimumHeightChangeEvent, value); 4784add => Events.AddHandler(s_rowPostPaintEvent, value); 4785remove => Events.RemoveHandler(s_rowPostPaintEvent, value); 4802add => Events.AddHandler(s_rowPrePaintEvent, value); 4803remove => Events.RemoveHandler(s_rowPrePaintEvent, value); 4820add => Events.AddHandler(s_rowsAddedEvent, value); 4821remove => Events.RemoveHandler(s_rowsAddedEvent, value); 4828add => Events.AddHandler(s_rowsRemovedEvent, value); 4829remove => Events.RemoveHandler(s_rowsRemovedEvent, value); 4836add => Events.AddHandler(s_rowStateChangedEvent, value); 4837remove => Events.RemoveHandler(s_rowStateChangedEvent, value); 4845add => Events.AddHandler(s_rowUnsharedEvent, value); 4846remove => Events.RemoveHandler(s_rowUnsharedEvent, value); 4853add => Events.AddHandler(s_rowValidatedEvent, value); 4854remove => Events.RemoveHandler(s_rowValidatedEvent, value); 4861add => Events.AddHandler(s_rowValidatingEvent, value); 4862remove => Events.RemoveHandler(s_rowValidatingEvent, value); 4869add => Events.AddHandler(s_scrollEvent, value); 4870remove => Events.RemoveHandler(s_scrollEvent, value); 4877add => Events.AddHandler(s_selectionChangedEvent, value); 4878remove => Events.RemoveHandler(s_selectionChangedEvent, value); 4886add => Events.AddHandler(s_sortCompareEvent, value); 4887remove => Events.RemoveHandler(s_sortCompareEvent, value); 4894add => Events.AddHandler(s_sortedEvent, value); 4895remove => Events.RemoveHandler(s_sortedEvent, value); 4910add => Events.AddHandler(s_userAddedRowEvent, value); 4911remove => Events.RemoveHandler(s_userAddedRowEvent, value); 4918add => Events.AddHandler(s_userDeletedRowEvent, value); 4919remove => Events.RemoveHandler(s_userDeletedRowEvent, value); 4926add => Events.AddHandler(s_userDeletingRowEvent, value); 4927remove => Events.RemoveHandler(s_userDeletingRowEvent, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
14618if (Events[s_dataErrorEvent] is not DataGridViewDataErrorEventHandler eh) 14667if (Events[s_rowStateChangedEvent] is DataGridViewRowStateChangedEventHandler 30121_dataGridViewOper[OperationInDispose] || IsDisposed ? null : Events[staticEvent] as T;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
537add => Events.AddHandler(s_formatChangedEvent, value); 538remove => Events.RemoveHandler(s_formatChangedEvent, value); 1082if (Events[s_formatChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\Labels\Label.cs (3)
733add => Events.AddHandler(s_eventTextAlignChanged, value); 734remove => Events.RemoveHandler(s_eventTextAlignChanged, value); 1237if (Events[s_eventTextAlignChanged] is EventHandler eh)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
368add => Events.AddHandler(s_eventLinkClicked, value); 369remove => Events.RemoveHandler(s_eventLinkClicked, value); 957((LinkLabelLinkClickedEventHandler?)Events[s_eventLinkClicked])?.Invoke(this, e);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (9)
1234add => Events.AddHandler(s_drawItemEvent, value); 1235remove => Events.RemoveHandler(s_drawItemEvent, value); 1242add => Events.AddHandler(s_measureItemEvent, value); 1243remove => Events.RemoveHandler(s_measureItemEvent, value); 1250add => Events.AddHandler(s_selectedIndexChangedEvent, value); 1251remove => 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)
93add => Events.AddHandler(s_dataSourceChangedEvent, value); 94remove => Events.RemoveHandler(s_dataSourceChangedEvent, value); 130add => Events.AddHandler(s_displayMemberChangedEvent, value); 131remove => Events.RemoveHandler(s_displayMemberChangedEvent, value); 169Events.AddHandler(s_formatEvent, value); 174Events.RemoveHandler(s_formatEvent, value); 202add => Events.AddHandler(s_formatInfoChangedEvent, value); 203remove => Events.RemoveHandler(s_formatInfoChangedEvent, value); 230add => Events.AddHandler(s_formatStringChangedEvent, value); 231remove => Events.RemoveHandler(s_formatStringChangedEvent, value); 254add => Events.AddHandler(s_formattingEnabledChangedEvent, value); 255remove => Events.RemoveHandler(s_formattingEnabledChangedEvent, value); 335add => Events.AddHandler(s_valueMemberChangedEvent, value); 336remove => Events.RemoveHandler(s_valueMemberChangedEvent, value); 389add => Events.AddHandler(s_selectedValueChangedEvent, value); 390remove => Events.RemoveHandler(s_selectedValueChangedEvent, value); 597EventHandler? eh = Events[s_dataSourceChangedEvent] as EventHandler; 603EventHandler? eh = Events[s_displayMemberChangedEvent] as EventHandler; 609ListControlConvertEventHandler? eh = Events[s_formatEvent] as ListControlConvertEventHandler; 615EventHandler? eh = Events[s_formatInfoChangedEvent] as EventHandler; 621EventHandler? eh = Events[s_formatStringChangedEvent] as EventHandler; 627EventHandler? eh = Events[s_formattingEnabledChangedEvent] as EventHandler; 645EventHandler? eh = Events[s_valueMemberChangedEvent] as EventHandler; 651EventHandler? eh = Events[s_selectedValueChangedEvent] as EventHandler;
System\Windows\Forms\Controls\ListView\ListView.cs (45)
1350add => Events.AddHandler(s_rightToLeftLayoutChangedEvent, value); 1351remove => Events.RemoveHandler(s_rightToLeftLayoutChangedEvent, value); 1962add => Events.AddHandler(s_cacheVirtualItemsEvent, value); 1963remove => Events.RemoveHandler(s_cacheVirtualItemsEvent, value); 1981add => Events.AddHandler(s_groupTaskLinkClickEvent, value); 1982remove => Events.RemoveHandler(s_groupTaskLinkClickEvent, value); 1992add => Events.AddHandler(s_columnReorderedEvent, value); 1993remove => Events.RemoveHandler(s_columnReorderedEvent, value); 2003add => Events.AddHandler(s_columnWidthChangedEvent, value); 2004remove => Events.RemoveHandler(s_columnWidthChangedEvent, value); 2014add => Events.AddHandler(s_columnWidthChangingEvent, value); 2015remove => Events.RemoveHandler(s_columnWidthChangingEvent, value); 2025add => Events.AddHandler(s_drawColumnHeaderEvent, value); 2026remove => Events.RemoveHandler(s_drawColumnHeaderEvent, value); 2036add => Events.AddHandler(s_drawItemEvent, value); 2037remove => Events.RemoveHandler(s_drawItemEvent, value); 2047add => Events.AddHandler(s_drawSubItemEvent, value); 2048remove => Events.RemoveHandler(s_drawSubItemEvent, value); 2095add => Events.AddHandler(s_itemSelectionChangedEvent, value); 2096remove => Events.RemoveHandler(s_itemSelectionChangedEvent, value); 2106add => Events.AddHandler(s_groupCollapsedStateChangedEvent, value); 2107remove => Events.RemoveHandler(s_groupCollapsedStateChangedEvent, value); 2142add => Events.AddHandler(s_retrieveVirtualItemEvent, value); 2143remove => Events.RemoveHandler(s_retrieveVirtualItemEvent, value); 2150add => Events.AddHandler(s_searchForVirtualItemEvent, value); 2151remove => Events.RemoveHandler(s_searchForVirtualItemEvent, value); 2158add => Events.AddHandler(s_selectedIndexChangedEvent, value); 2159remove => Events.RemoveHandler(s_selectedIndexChangedEvent, value); 2166add => Events.AddHandler(s_virtualItemSelectionRangeChangedEvent, value); 2167remove => 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); 4825if (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)
98add => Events.AddHandler(s_menuActivateEvent, value); 99remove => Events.RemoveHandler(s_menuActivateEvent, value); 106add => Events.AddHandler(s_menuDeactivateEvent, value); 107remove => 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)
753add => Events.AddHandler(s_loadCompletedKey, value); 754remove => Events.RemoveHandler(s_loadCompletedKey, value); 761add => Events.AddHandler(s_loadProgressChangedKey, value); 762remove => Events.RemoveHandler(s_loadProgressChangedKey, value); 860add => Events.AddHandler(s_sizeModeChangedEvent, value); 861remove => Events.RemoveHandler(s_sizeModeChangedEvent, value); 1098((AsyncCompletedEventHandler?)(Events[s_loadCompletedKey]))?.Invoke(this, e); 1101((ProgressChangedEventHandler?)(Events[s_loadProgressChangedKey]))?.Invoke(this, e); 1175if (Events[s_sizeModeChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (21)
1496add => Events.AddHandler(s_requestSizeEvent, value); 1497remove => Events.RemoveHandler(s_requestSizeEvent, value); 1558add => Events.AddHandler(s_hscrollEvent, value); 1559remove => Events.RemoveHandler(s_hscrollEvent, value); 1566add => Events.AddHandler(s_linkActivateEvent, value); 1567remove => Events.RemoveHandler(s_linkActivateEvent, value); 1574add => Events.AddHandler(s_imeChangeEvent, value); 1575remove => Events.RemoveHandler(s_imeChangeEvent, value); 1582add => Events.AddHandler(s_protectedEvent, value); 1583remove => Events.RemoveHandler(s_protectedEvent, value); 1590add => Events.AddHandler(s_selectionChangeEvent, value); 1591remove => Events.RemoveHandler(s_selectionChangeEvent, value); 1598add => Events.AddHandler(s_vscrollEvent, value); 1599remove => 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)
505add => Events.AddHandler(s_movingEvent, value); 506remove => Events.RemoveHandler(s_movingEvent, value); 513add => Events.AddHandler(s_movedEvent, value); 514remove => 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)
849add => Events.AddHandler(s_rightToLeftLayoutChangedEvent, value); 850remove => Events.RemoveHandler(s_rightToLeftLayoutChangedEvent, value); 868add => Events.AddHandler(s_selectingEvent, value); 869remove => Events.RemoveHandler(s_selectingEvent, value); 879add => Events.AddHandler(s_selectedEvent, value); 880remove => Events.RemoveHandler(s_selectedEvent, value); 890add => Events.AddHandler(s_deselectingEvent, value); 891remove => Events.RemoveHandler(s_deselectingEvent, value); 901add => Events.AddHandler(s_deselectedEvent, value); 902remove => Events.RemoveHandler(s_deselectedEvent, value); 1430if (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)
589add => Events.AddHandler(s_isOverwriteModeChangedEvent, value); 590remove => Events.RemoveHandler(s_isOverwriteModeChangedEvent, value); 730add => Events.AddHandler(s_maskChangedEvent, value); 731remove => Events.RemoveHandler(s_maskChangedEvent, value); 781add => Events.AddHandler(s_maskInputRejectedEvent, value); 782remove => Events.RemoveHandler(s_maskInputRejectedEvent, value); 1268add => Events.AddHandler(s_textAlignChangedEvent, value); 1270remove => Events.RemoveHandler(s_textAlignChangedEvent, value); 1378add => Events.AddHandler(s_validationCompletedEvent, value); 1379remove => Events.RemoveHandler(s_validationCompletedEvent, value); 1835if (Events[s_isOverwriteModeChangedEvent] is EventHandler eh) 2053if (Events[s_maskChangedEvent] is EventHandler eh) 2072if (Events[s_maskInputRejectedEvent] is MaskInputRejectedEventHandler eh) 2106if (Events[s_textAlignChangedEvent] is EventHandler eh) 2117if (Events[s_validationCompletedEvent] is TypeValidationEventHandler eh)
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
502add => Events.AddHandler(s_textAlignChangedEvent, value); 503remove => Events.RemoveHandler(s_textAlignChangedEvent, value); 676if (Events[s_textAlignChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (18)
141add => Events.AddHandler(s_acceptsTabChangedEvent, value); 142remove => Events.RemoveHandler(s_acceptsTabChangedEvent, value); 377add => Events.AddHandler(s_borderStyleChangedEvent, value); 378remove => Events.RemoveHandler(s_borderStyleChangedEvent, value); 541add => Events.AddHandler(s_hideSelectionChangedEvent, value); 542remove => Events.RemoveHandler(s_hideSelectionChangedEvent, value); 703add => Events.AddHandler(s_modifiedChangedEvent, value); 704remove => Events.RemoveHandler(s_modifiedChangedEvent, value); 753add => Events.AddHandler(s_multilineChangedEvent, value); 754remove => Events.RemoveHandler(s_multilineChangedEvent, value); 949add => Events.AddHandler(s_readOnlyChangedEvent, value); 950remove => Events.RemoveHandler(s_readOnlyChangedEvent, value); 1423if (Events[s_acceptsTabChangedEvent] is EventHandler eh) 1431if (Events[s_borderStyleChangedEvent] is EventHandler eh) 1445if (Events[s_hideSelectionChangedEvent] is EventHandler eh) 1453if (Events[s_modifiedChangedEvent] is EventHandler eh) 1490if (Events[s_multilineChangedEvent] is EventHandler eh) 1504if (Events[s_readOnlyChangedEvent] is EventHandler eh)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (30)
375add => Events.AddHandler(s_eventBeginDrag, value); 376remove => Events.RemoveHandler(s_eventBeginDrag, value); 512add => Events.AddHandler(s_eventEndDrag, value); 513remove => Events.RemoveHandler(s_eventEndDrag, value); 1057add => Events.AddHandler(s_eventItemAdded, value); 1058remove => Events.RemoveHandler(s_eventItemAdded, value); 1068add => Events.AddHandler(s_eventItemClicked, value); 1069remove => Events.RemoveHandler(s_eventItemClicked, value); 1100add => Events.AddHandler(s_eventItemRemoved, value); 1101remove => Events.RemoveHandler(s_eventItemRemoved, value); 1264add => Events.AddHandler(s_eventLayoutCompleted, value); 1265remove => Events.RemoveHandler(s_eventLayoutCompleted, value); 1274add => Events.AddHandler(s_eventLayoutStyleChanged, value); 1275remove => Events.RemoveHandler(s_eventLayoutStyleChanged, value); 1288add => Events.AddHandler(s_eventLocationChanging, value); 1289remove => Events.RemoveHandler(s_eventLocationChanging, value); 1387add => Events.AddHandler(s_eventPaintGrip, value); 1388remove => Events.RemoveHandler(s_eventPaintGrip, value); 1538add => Events.AddHandler(s_eventRendererChanged, value); 1539remove => 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)
120add => Events.AddHandler(s_checkedChangedEvent, value); 121remove => Events.RemoveHandler(s_checkedChangedEvent, value); 130add => Events.AddHandler(s_checkStateChangedEvent, value); 131remove => 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)
123add => Events.AddHandler(s_eventDropDown, value); 124remove => Events.RemoveHandler(s_eventDropDown, value); 131add => Events.AddHandler(s_eventDropDownClosed, value); 132remove => Events.RemoveHandler(s_eventDropDownClosed, value); 139add => Events.AddHandler(s_eventDropDownStyleChanged, value); 140remove => Events.RemoveHandler(s_eventDropDownStyleChanged, value); 250add => Events.AddHandler(s_eventSelectedIndexChanged, value); 251remove => Events.RemoveHandler(s_eventSelectedIndexChanged, value); 304add => Events.AddHandler(s_eventTextUpdate, value); 305remove => Events.RemoveHandler(s_eventTextUpdate, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (6)
158add => Events.AddHandler(s_loadEvent, value); 159remove => Events.RemoveHandler(s_loadEvent, value); 289add => Events.AddHandler(s_rendererChangedEvent, value); 290remove => 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)
170add => Events.AddHandler(s_displayStyleChangedEvent, value); 171remove => Events.RemoveHandler(s_displayStyleChangedEvent, value); 205add => Events.AddHandler(s_enterEvent, value); 206remove => Events.RemoveHandler(s_enterEvent, value); 225add => Events.AddHandler(s_gotFocusEvent, value); 226remove => Events.RemoveHandler(s_gotFocusEvent, value); 269add => Events.AddHandler(s_leaveEvent, value); 270remove => Events.RemoveHandler(s_leaveEvent, value); 282add => Events.AddHandler(s_lostFocusEvent, value); 283remove => Events.RemoveHandler(s_lostFocusEvent, value); 293add => Events.AddHandler(s_keyDownEvent, value); 294remove => Events.RemoveHandler(s_keyDownEvent, value); 304add => Events.AddHandler(s_keyPressEvent, value); 305remove => Events.RemoveHandler(s_keyPressEvent, value); 315add => Events.AddHandler(s_keyUpEvent, value); 316remove => Events.RemoveHandler(s_keyUpEvent, value); 438add => Events.AddHandler(s_validatingEvent, value); 439remove => Events.RemoveHandler(s_validatingEvent, value); 446add => Events.AddHandler(s_validatedEvent, value); 447remove => Events.RemoveHandler(s_validatedEvent, value); 562((QueryAccessibilityHelpEventHandler?)Events[s_queryAccessibilityHelpEvent])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (12)
334add => Events.AddHandler(s_closedEvent, value); 335remove => Events.RemoveHandler(s_closedEvent, value); 342add => Events.AddHandler(s_closingEvent, value); 343remove => Events.RemoveHandler(s_closingEvent, value); 533add => Events.AddHandler(s_openingEvent, value); 534remove => Events.RemoveHandler(s_openingEvent, value); 544add => Events.AddHandler(s_openedEvent, value); 545remove => 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)
201add => Events.AddHandler(s_dropDownClosedEvent, value); 202remove => Events.RemoveHandler(s_dropDownClosedEvent, value); 223add => Events.AddHandler(s_dropDownShowEvent, value); 224remove => Events.RemoveHandler(s_dropDownShowEvent, value); 234add => Events.AddHandler(s_dropDownOpenedEvent, value); 235remove => Events.RemoveHandler(s_dropDownOpenedEvent, value); 253add => Events.AddHandler(s_dropDownItemClickedEvent, value); 254remove => 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)
377add => Events.AddHandler(s_availableChangedEvent, value); 378remove => Events.RemoveHandler(s_availableChangedEvent, value); 424add => Events.AddHandler(s_commandCanExecuteChangedEvent, value); 425remove => Events.RemoveHandler(s_commandCanExecuteChangedEvent, value); 436add => Events.AddHandler(s_commandChangedEvent, value); 437remove => Events.RemoveHandler(s_commandChangedEvent, value); 471add => Events.AddHandler(s_commandParameterChangedEvent, value); 472remove => Events.RemoveHandler(s_commandParameterChangedEvent, value); 538add => Events.AddHandler(s_backColorChangedEvent, value); 539remove => Events.RemoveHandler(s_backColorChangedEvent, value); 590add => Events.AddHandler(s_clickEvent, value); 591remove => Events.RemoveHandler(s_clickEvent, value); 722add => Events.AddHandler(s_displayStyleChangedEvent, value); 723remove => Events.RemoveHandler(s_displayStyleChangedEvent, value); 736add => Events.AddHandler(s_doubleClickEvent, value); 737remove => Events.RemoveHandler(s_doubleClickEvent, value); 755add => Events.AddHandler(s_dragDropEvent, value); 756remove => Events.RemoveHandler(s_dragDropEvent, value); 765add => Events.AddHandler(s_dragEnterEvent, value); 766remove => Events.RemoveHandler(s_dragEnterEvent, value); 775add => Events.AddHandler(s_dragOverEvent, value); 776remove => Events.RemoveHandler(s_dragOverEvent, value); 785add => Events.AddHandler(s_dragLeaveEvent, value); 786remove => Events.RemoveHandler(s_dragLeaveEvent, value); 838add => Events.AddHandler(s_enabledChangedEvent, value); 839remove => Events.RemoveHandler(s_enabledChangedEvent, value); 844add => Events.AddHandler(s_internalEnabledChangedEvent, value); 845remove => Events.RemoveHandler(s_internalEnabledChangedEvent, value); 892add => Events.AddHandler(s_foreColorChangedEvent, value); 893remove => Events.RemoveHandler(s_foreColorChangedEvent, value); 936add => Events.AddHandler(s_giveFeedbackEvent, value); 937remove => Events.RemoveHandler(s_giveFeedbackEvent, value); 1254add => Events.AddHandler(s_locationChangedEvent, value); 1255remove => Events.RemoveHandler(s_locationChangedEvent, value); 1318add => Events.AddHandler(s_mouseDownEvent, value); 1319remove => Events.RemoveHandler(s_mouseDownEvent, value); 1329add => Events.AddHandler(s_mouseEnterEvent, value); 1330remove => Events.RemoveHandler(s_mouseEnterEvent, value); 1340add => Events.AddHandler(s_mouseLeaveEvent, value); 1341remove => Events.RemoveHandler(s_mouseLeaveEvent, value); 1351add => Events.AddHandler(s_mouseHoverEvent, value); 1352remove => Events.RemoveHandler(s_mouseHoverEvent, value); 1362add => Events.AddHandler(s_mouseMoveEvent, value); 1363remove => Events.RemoveHandler(s_mouseMoveEvent, value); 1373add => Events.AddHandler(s_mouseUpEvent, value); 1374remove => Events.RemoveHandler(s_mouseUpEvent, value); 1453add => Events.AddHandler(s_ownerChangedEvent, value); 1454remove => Events.RemoveHandler(s_ownerChangedEvent, value); 1461add => Events.AddHandler(s_paintEvent, value); 1462remove => Events.RemoveHandler(s_paintEvent, value); 1594add => Events.AddHandler(s_queryContinueDragEvent, value); 1595remove => Events.RemoveHandler(s_queryContinueDragEvent, value); 1602add => Events.AddHandler(s_queryAccessibilityHelpEvent, value); 1603remove => Events.RemoveHandler(s_queryAccessibilityHelpEvent, value); 1735add => Events.AddHandler(s_rightToLeftChangedEvent, value); 1736remove => Events.RemoveHandler(s_rightToLeftChangedEvent, value); 1782add => Events.AddHandler(s_selectedChangedEvent, value); 1783remove => Events.RemoveHandler(s_selectedChangedEvent, value); 1894add => Events.AddHandler(s_textChangedEvent, value); 1895remove => Events.RemoveHandler(s_textChangedEvent, value); 1993add => Events.AddHandler(s_visibleChangedEvent, value); 1994remove => Events.RemoveHandler(s_visibleChangedEvent, value); 2696=> ((EventHandler?)Events[s_commandCanExecuteChangedEvent])?.Invoke(this, e); 2771=> ((GiveFeedbackEventHandler?)Events[s_giveFeedbackEvent])?.Invoke(this, giveFeedbackEvent); 3069internal void RaiseCancelEvent(object key, CancelEventArgs e) => ((CancelEventHandler?)Events[key])?.Invoke(this, e); 3071internal void RaiseDragEvent(object key, DragEventArgs e) => ((DragEventHandler?)Events[key])?.Invoke(this, e); 3073internal void RaiseKeyEvent(object key, KeyEventArgs e) => ((KeyEventHandler?)Events[key])?.Invoke(this, e); 3075internal void RaiseKeyPressEvent(object key, KeyPressEventArgs e) => ((KeyPressEventHandler?)Events[key])?.Invoke(this, e); 3077internal void RaiseMouseEvent(object key, MouseEventArgs e) => ((MouseEventHandler?)Events[key])?.Invoke(this, e); 3079internal 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)
55QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent]; 68=> IsInternal && (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent] is null; 210QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent]; 227internal override bool CanGetHelpTopicInternal => IsInternal && Owner.Events[s_queryAccessibilityHelpEvent] is null;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (8)
323add => Events.AddHandler(s_eventCheckedChanged, value); 324remove => Events.RemoveHandler(s_eventCheckedChanged, value); 333add => Events.AddHandler(s_eventCheckStateChanged, value); 334remove => Events.RemoveHandler(s_eventCheckStateChanged, value); 487menuItem.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)
260add => Events.AddHandler(s_eventRendererChanged, value); 261remove => Events.RemoveHandler(s_eventRendererChanged, value); 560((EventHandler?)Events[s_eventRendererChanged])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (2)
331add => Events.AddHandler(s_rightToLeftLayoutChangedEvent, value); 332remove => Events.RemoveHandler(s_rightToLeftLayoutChangedEvent, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (9)
118add => Events.AddHandler(s_eventButtonClick, value); 119remove => Events.RemoveHandler(s_eventButtonClick, value); 129add => Events.AddHandler(s_eventButtonDoubleClick, value); 130remove => Events.RemoveHandler(s_eventButtonDoubleClick, value); 166add => Events.AddHandler(s_eventDefaultItemChanged, value); 167remove => Events.RemoveHandler(s_eventDefaultItemChanged, value); 391((EventHandler?)Events[s_eventButtonClick])?.Invoke(this, e); 401((EventHandler?)Events[s_eventButtonDoubleClick])?.Invoke(this, e); 412if (Events[s_eventDefaultItemChanged] is EventHandler eh)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (14)
379add => Events.AddHandler(s_eventAcceptsTabChanged, value); 380remove => Events.RemoveHandler(s_eventAcceptsTabChanged, value); 387add => Events.AddHandler(s_eventBorderStyleChanged, value); 388remove => Events.RemoveHandler(s_eventBorderStyleChanged, value); 395add => Events.AddHandler(s_eventHideSelectionChanged, value); 396remove => Events.RemoveHandler(s_eventHideSelectionChanged, value); 403add => Events.AddHandler(s_eventModifiedChanged, value); 404remove => Events.RemoveHandler(s_eventModifiedChanged, value); 413add => Events.AddHandler(s_eventMultilineChanged, value); 414remove => Events.RemoveHandler(s_eventMultilineChanged, value); 421add => Events.AddHandler(s_eventReadOnlyChanged, value); 422remove => Events.RemoveHandler(s_eventReadOnlyChanged, value); 429add => Events.AddHandler(s_eventTextBoxTextAlignChanged, value); 430remove => Events.RemoveHandler(s_eventTextBoxTextAlignChanged, value);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (9)
666add => Events.AddHandler(s_rightToLeftChangedEvent, value); 667remove => Events.RemoveHandler(s_rightToLeftChangedEvent, value); 674add => Events.AddHandler(s_scrollEvent, value); 675remove => Events.RemoveHandler(s_scrollEvent, value); 690add => Events.AddHandler(s_valueChangedEvent, value); 691remove => Events.RemoveHandler(s_valueChangedEvent, value); 894if (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)
49add => Events.AddHandler(s_bindingContextChangedEvent, value); 50remove => Events.RemoveHandler(s_bindingContextChangedEvent, value); 81=> ((EventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\DataBinding\BindingSource.cs (30)
395add => Events.AddHandler(s_eventAddingNew, value); 396remove => Events.RemoveHandler(s_eventAddingNew, value); 403add => Events.AddHandler(s_eventBindingComplete, value); 404remove => Events.RemoveHandler(s_eventBindingComplete, value); 411add => Events.AddHandler(s_eventDataError, value); 412remove => Events.RemoveHandler(s_eventDataError, value); 419add => Events.AddHandler(s_eventDataSourceChanged, value); 420remove => Events.RemoveHandler(s_eventDataSourceChanged, value); 427add => Events.AddHandler(s_eventDataMemberChanged, value); 428remove => Events.RemoveHandler(s_eventDataMemberChanged, value); 435add => Events.AddHandler(s_eventCurrentChanged, value); 436remove => Events.RemoveHandler(s_eventCurrentChanged, value); 443add => Events.AddHandler(s_eventCurrentItemChanged, value); 444remove => Events.RemoveHandler(s_eventCurrentItemChanged, value); 451add => Events.AddHandler(s_eventListChanged, value); 452remove => Events.RemoveHandler(s_eventListChanged, value); 459add => Events.AddHandler(s_eventPositionChanged, value); 460remove => Events.RemoveHandler(s_eventPositionChanged, value); 793AddingNewEventHandler? eh = (AddingNewEventHandler?)Events[s_eventAddingNew]; 799BindingCompleteEventHandler? eh = (BindingCompleteEventHandler?)Events[s_eventBindingComplete]; 812EventHandler? eh = (EventHandler?)Events[s_eventCurrentChanged]; 818EventHandler? eh = (EventHandler?)Events[s_eventCurrentItemChanged]; 824BindingManagerDataErrorEventHandler? eh = Events[s_eventDataError] as BindingManagerDataErrorEventHandler; 830EventHandler? eh = Events[s_eventDataMemberChanged] as EventHandler; 836EventHandler? eh = Events[s_eventDataSourceChanged] as EventHandler; 848ListChangedEventHandler? eh = (ListChangedEventHandler?)Events[s_eventListChanged]; 854EventHandler? eh = (EventHandler?)Events[s_eventPositionChanged]; 1411add => Events.AddHandler(s_eventInitialized, value); 1412remove => Events.RemoveHandler(s_eventInitialized, value); 1417EventHandler? eh = (EventHandler?)Events[s_eventInitialized];
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (3)
49add => Events.AddHandler(s_helpRequestEvent, value); 50remove => Events.RemoveHandler(s_helpRequestEvent, value); 112EventHandler? handler = (EventHandler?)Events[s_helpRequestEvent];
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (3)
378add => Events.AddHandler(EventFileOk, value); 379remove => Events.RemoveHandler(EventFileOk, value); 605CancelEventHandler? handler = (CancelEventHandler?)Events[EventFileOk];
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (3)
289add => Events.AddHandler(EventApply, value); 290remove => Events.RemoveHandler(EventApply, value); 361protected virtual void OnApply(EventArgs e) => (Events[EventApply] as EventHandler)?.Invoke(this, e);
System\Windows\Forms\Form.cs (75)
992add => Events.AddHandler(s_helpButtonChangedEvent, value); 993remove => Events.RemoveHandler(s_helpButtonChangedEvent, value); 1179add => Events.AddHandler(s_maximizeBoundsChangedEvent, value); 1180remove => Events.RemoveHandler(s_maximizeBoundsChangedEvent, value); 1254add => Events.AddHandler(s_maximumSizeChangedEvent, value); 1255remove => Events.RemoveHandler(s_maximumSizeChangedEvent, value); 1385add => Events.AddHandler(s_minimumSizeChangedEvent, value); 1386remove => Events.RemoveHandler(s_minimumSizeChangedEvent, value); 2227if (Events[s_formCornerPreferenceChanged] is EventHandler eventHandler) 2309if (Events[s_formBorderColorChanged] is EventHandler eventHandler) 2372if (Events[s_formCaptionBackColorChanged] is EventHandler eventHandler) 2435if (Events[s_formCaptionTextColorChanged] is EventHandler eventHandler) 2544add => Events.AddHandler(s_activatedEvent, value); 2545remove => Events.RemoveHandler(s_activatedEvent, value); 2562add => Events.AddHandler(s_closingEvent, value); 2563remove => Events.RemoveHandler(s_closingEvent, value); 2580add => Events.AddHandler(s_closedEvent, value); 2581remove => Events.RemoveHandler(s_closedEvent, value); 2591add => Events.AddHandler(s_deactivateEvent, value); 2592remove => Events.RemoveHandler(s_deactivateEvent, value); 2602add => Events.AddHandler(s_formClosingEvent, value); 2603remove => Events.RemoveHandler(s_formClosingEvent, value); 2614add => Events.AddHandler(s_formBorderColorChanged, value); 2615remove => Events.RemoveHandler(s_formBorderColorChanged, value); 2626add => Events.AddHandler(s_formCaptionBackColorChanged, value); 2627remove => Events.RemoveHandler(s_formCaptionBackColorChanged, value); 2638add => Events.AddHandler(s_formCaptionTextColorChanged, value); 2639remove => Events.RemoveHandler(s_formCaptionTextColorChanged, value); 2650add => Events.AddHandler(s_formCornerPreferenceChanged, value); 2651remove => Events.RemoveHandler(s_formCornerPreferenceChanged, value); 2661add => Events.AddHandler(s_formClosedEvent, value); 2662remove => Events.RemoveHandler(s_formClosedEvent, value); 2672add => Events.AddHandler(s_loadEvent, value); 2673remove => Events.RemoveHandler(s_loadEvent, value); 2684add => Events.AddHandler(s_mdiChildActivateEvent, value); 2685remove => Events.RemoveHandler(s_mdiChildActivateEvent, value); 2696add => Events.AddHandler(s_menuCompleteEvent, value); 2697remove => Events.RemoveHandler(s_menuCompleteEvent, value); 2708add => Events.AddHandler(s_menuStartEvent, value); 2709remove => Events.RemoveHandler(s_menuStartEvent, value); 2719add => Events.AddHandler(s_inputLanguageChangeEvent, value); 2720remove => Events.RemoveHandler(s_inputLanguageChangeEvent, value); 2731add => Events.AddHandler(s_inputLanguageChangeRequestEvent, value); 2732remove => Events.RemoveHandler(s_inputLanguageChangeRequestEvent, value); 2739add => Events.AddHandler(s_rightToLeftLayoutChangedEvent, value); 2740remove => Events.RemoveHandler(s_rightToLeftLayoutChangedEvent, value); 2750add => Events.AddHandler(s_shownEvent, value); 2751remove => 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); 4253EventHandler? handler = (EventHandler?)Events[s_loadEvent]; 4291if (Events[s_maximizeBoundsChangedEvent] is EventHandler eh) 4300if (Events[s_maximumSizeChangedEvent] is EventHandler eh) 4309if (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); 4381EventHandler? handler = (EventHandler?)Events[s_menuStartEvent]; 4391((EventHandler?)Events[s_menuCompleteEvent])?.Invoke(this, e); 4463((DpiChangedEventHandler?)Events[s_dpiChangedEvent])?.Invoke(this, e); 4511add => Events.AddHandler(s_dpiChangedEvent, value); 4512remove => Events.RemoveHandler(s_dpiChangedEvent, value); 4600if (Events[s_rightToLeftLayoutChangedEvent] is EventHandler eh) 4621((EventHandler?)Events[s_shownEvent])?.Invoke(this, e); 4965add => Events.AddHandler(s_resizeBeginEvent, value); 4966remove => Events.RemoveHandler(s_resizeBeginEvent, value); 4976add => Events.AddHandler(s_resizeEndEvent, value); 4977remove => 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)
896add => Events.AddHandler(s_eventMoving, value); 897remove => Events.RemoveHandler(s_eventMoving, value); 904add => Events.AddHandler(s_eventMoved, value); 905remove => 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)
152add => Events.AddHandler(s_balloonTipClickedEvent, value); 154remove => Events.RemoveHandler(s_balloonTipClickedEvent, value); 164add => Events.AddHandler(s_balloonTipClosedEvent, value); 166remove => Events.RemoveHandler(s_balloonTipClosedEvent, value); 176add => Events.AddHandler(s_balloonTipShownEvent, value); 177remove => Events.RemoveHandler(s_balloonTipShownEvent, value); 304add => Events.AddHandler(s_clickEvent, value); 305remove => Events.RemoveHandler(s_clickEvent, value); 315add => Events.AddHandler(s_doubleClickEvent, value); 316remove => Events.RemoveHandler(s_doubleClickEvent, value); 326add => Events.AddHandler(s_mouseClickEvent, value); 327remove => Events.RemoveHandler(s_mouseClickEvent, value); 337add => Events.AddHandler(s_mouseDoubleClickEvent, value); 338remove => Events.RemoveHandler(s_mouseDoubleClickEvent, value); 349add => Events.AddHandler(s_mouseDownEvent, value); 350remove => Events.RemoveHandler(s_mouseDownEvent, value); 361add => Events.AddHandler(s_mouseMoveEvent, value); 362remove => Events.RemoveHandler(s_mouseMoveEvent, value); 374add => Events.AddHandler(s_mouseUpEvent, value); 375remove => 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)
310add => Events.AddHandler(s_eventCellPaint, value); 311remove => Events.RemoveHandler(s_eventCellPaint, value); 327((TableLayoutCellPaintEventHandler?)Events[s_eventCellPaint])?.Invoke(this, e);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
236add => Events.AddHandler(s_startPageChangedEvent, value); 237remove => Events.RemoveHandler(s_startPageChangedEvent, value); 242if (Events[s_startPageChangedEvent] is EventHandler eh)
System\Windows\Forms\Scrolling\ScrollableControl.cs (4)
694((EventHandler?)Events[s_paddingChangedEvent])?.Invoke(this, e); 923add => Events.AddHandler(s_scrollEvent, value); 924remove => Events.RemoveHandler(s_scrollEvent, value); 932((ScrollEventHandler?)Events[s_scrollEvent])?.Invoke(this, se);
System\Windows\Forms\Scrolling\ScrollBar.cs (6)
459add => Events.AddHandler(s_scrollEvent, value); 460remove => Events.RemoveHandler(s_scrollEvent, value); 472add => Events.AddHandler(s_valueChangedEvent, value); 473remove => 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)
195add => Events.AddHandler(s_loadEvent, value); 196remove => Events.RemoveHandler(s_loadEvent, value); 276((EventHandler?)Events[s_loadEvent])?.Invoke(this, e);
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.cs (6)
195add => Events.AddHandler(s_eventFormActivated, value); 196remove => Events.RemoveHandler(s_eventFormActivated, value); 204add => Events.AddHandler(s_eventFormDeactivate, value); 205remove => 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)
1038public new EventHandlerList Events => base.Events;
System.Windows.Forms.Tests (72)
System\Windows\Forms\AxHostTests.cs (1)
3196public new EventHandlerList Events => base.Events;
System\Windows\Forms\BindingSourceTests.cs (1)
839public new EventHandlerList Events => base.Events;
System\Windows\Forms\ButtonBaseTests.cs (1)
9299public new EventHandlerList Events => base.Events;
System\Windows\Forms\ButtonTests.cs (1)
3707public new EventHandlerList Events => base.Events;
System\Windows\Forms\CheckBoxTests.cs (1)
662public new EventHandlerList Events => base.Events;
System\Windows\Forms\ColorDialogTests.cs (1)
369public new EventHandlerList Events => base.Events;
System\Windows\Forms\ColumnHeaderTests.cs (1)
1661public new EventHandlerList Events => base.Events;
System\Windows\Forms\ComboBoxTests.cs (1)
2851public new EventHandlerList Events => base.Events;
System\Windows\Forms\CommonDialogTests.cs (1)
273public new EventHandlerList Events => base.Events;
System\Windows\Forms\ContainerControlTests.cs (1)
1441public new EventHandlerList Events => base.Events;
System\Windows\Forms\ControlTests.cs (1)
1174public new EventHandlerList Events => base.Events;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2134public new EventHandlerList Events => base.Events;
System\Windows\Forms\DateTimePickerTests.cs (1)
1036public new EventHandlerList Events => base.Events;
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
410public new EventHandlerList Events => base.Events;
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
913public new EventHandlerList Events => base.Events;
System\Windows\Forms\Design\EventsTabTests.cs (9)
146add => Events.AddHandler(nameof(ActiveDesignerChanged), value); 147remove => Events.RemoveHandler(nameof(ActiveDesignerChanged), value); 152add => Events.AddHandler(nameof(DesignerCreated), value); 153remove => Events.RemoveHandler(nameof(DesignerCreated), value); 158add => Events.AddHandler(nameof(DesignerDisposed), value); 159remove => Events.RemoveHandler(nameof(DesignerDisposed), value); 164add => Events.AddHandler(nameof(SelectionChanged), value); 165remove => Events.RemoveHandler(nameof(SelectionChanged), value); 170ActiveDesignerEventHandler handler = (ActiveDesignerEventHandler)Events[nameof(ActiveDesignerChanged)];
System\Windows\Forms\DomainUpDownTests.cs (1)
1500public new EventHandlerList Events => base.Events;
System\Windows\Forms\ErrorProviderTests.cs (1)
1369public new EventHandlerList Events => base.Events;
System\Windows\Forms\FileDialogTests.cs (1)
832public new EventHandlerList Events => base.Events;
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
460public new EventHandlerList Events => base.Events;
System\Windows\Forms\FontDialogTests.cs (1)
758public new EventHandlerList Events => base.Events;
System\Windows\Forms\FormTests.cs (1)
2720public new EventHandlerList Events => base.Events;
System\Windows\Forms\GroupBoxTests.cs (1)
2325public new EventHandlerList Events => base.Events;
System\Windows\Forms\HelpProviderTests.cs (1)
568public new EventHandlerList Events => base.Events;
System\Windows\Forms\HScrollBarTests.cs (1)
274public new EventHandlerList Events => base.Events;
System\Windows\Forms\LabelTests.cs (1)
909public new EventHandlerList Events => base.Events;
System\Windows\Forms\ListBoxTests.cs (1)
6432public new EventHandlerList Events => base.Events;
System\Windows\Forms\ListControlTests.cs (1)
2940public new EventHandlerList Events => base.Events;
System\Windows\Forms\ListViewTests.cs (1)
6127public new EventHandlerList Events => base.Events;
System\Windows\Forms\MenuStripTests.cs (1)
886public new EventHandlerList Events => base.Events;
System\Windows\Forms\MonthCalendarTests.cs (1)
4756public new EventHandlerList Events => base.Events;
System\Windows\Forms\PanelTests.cs (1)
1182public new EventHandlerList Events => base.Events;
System\Windows\Forms\PictureBoxTests.cs (1)
2868public new EventHandlerList Events => base.Events;
System\Windows\Forms\ProgressBarTests.cs (1)
2612public new EventHandlerList Events => base.Events;
System\Windows\Forms\PropertyGridTests.cs (1)
4179public new EventHandlerList Events => base.Events;
System\Windows\Forms\RadioButtonTests.cs (1)
1555public new EventHandlerList Events => base.Events;
System\Windows\Forms\RichTextBoxTests.cs (1)
10952public new EventHandlerList Events => base.Events;
System\Windows\Forms\ScrollableControlTests.cs (1)
2600public new EventHandlerList Events => base.Events;
System\Windows\Forms\ScrollBarTests.cs (1)
3188public new EventHandlerList Events => base.Events;
System\Windows\Forms\SplitterTests.cs (1)
2333public new EventHandlerList Events => base.Events;
System\Windows\Forms\StatusStripTests.cs (1)
1308public new EventHandlerList Events => base.Events;
System\Windows\Forms\TabControlTests.cs (1)
5749public new EventHandlerList Events => base.Events;
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2199public new EventHandlerList Events => base.Events;
System\Windows\Forms\TabPageTests.cs (1)
5263public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripButtonTests.cs (1)
1736public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2044public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4655public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
525public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5126public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripItemTests.cs (1)
15513public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
445public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripPanelTests.cs (1)
387public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
1647public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolStripTests.cs (1)
7562public new EventHandlerList Events => base.Events;
System\Windows\Forms\ToolTipTests.cs (1)
921public new EventHandlerList Events => base.Events;
System\Windows\Forms\TreeViewTests.cs (1)
7600public new EventHandlerList Events => base.Events;
System\Windows\Forms\UpDownBaseTests.cs (1)
3133public new EventHandlerList Events => base.Events;
System\Windows\Forms\UserControlTests.cs (1)
1825public new EventHandlerList Events => base.Events;
System\Windows\Forms\VScrollBarTests.cs (1)
264public new EventHandlerList Events => base.Events;
System\Windows\Forms\WebBrowserTests.cs (1)
4694public new EventHandlerList Events => base.Events;
TextBoxBaseTests.cs (1)
7711public new EventHandlerList Events => base.Events;
TextBoxTests.cs (1)
709public new EventHandlerList Events => base.Events;
TrackBarTests.cs (1)
3306public new EventHandlerList Events => base.Events;
WebBrowserBaseTests.cs (1)
914public new EventHandlerList Events => base.Events;