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