75 references to GetService
System.Windows.Forms.Design (75)
System\ComponentModel\Design\ComponentDesigner.cs (8)
82
IComponent? root =
GetService
<IDesignerHost>()?.RootComponent;
259
IDesignerHost? host =
GetService
<IDesignerHost>();
473
IComponent? rootComponent =
GetService
<IDesignerHost>()?.RootComponent;
497
IComponent? rootComponent =
GetService
<IDesignerHost>()?.RootComponent;
570
service =
GetService
<T>();
587
=>
GetService
<IMenuCommandService>()?.ShowContextMenu(MenuCommands.SelectionMenu, x, y);
726
=>
GetService
<IComponentChangeService>()?.OnComponentChanged(Component, member, oldValue, newValue);
734
=>
GetService
<IComponentChangeService>()?.OnComponentChanging(Component, member);
System\Windows\Forms\Design\BindingSourceDesigner.cs (2)
50
DataSourceProviderService? dataSourceProviderService =
GetService
<DataSourceProviderService>();
59
IComponentChangeService? componentChangeService =
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
38
private ISelectionService? SelectionService => _selectionService ??= _designer.
GetService
<ISelectionService>();
System\Windows\Forms\Design\ControlDesigner.cs (13)
73
protected BehaviorService? BehaviorService => _behaviorService ??=
GetService
<BehaviorService>();
931
_host =
GetService
<IDesignerHost>();
975
_inheritanceUI =
GetService
<InheritanceUI>();
1331
ISelectionService? selectionService =
GetService
<ISelectionService>();
1355
_selectionUIService ??=
GetService
<ISelectionUIService>();
1583
_toolboxService ??=
GetService
<IToolboxService>();
1673
_host ??=
GetService
<IDesignerHost>();
1768
_eventService ??=
GetService
<IEventHandlerService>();
1894
_toolboxService ??=
GetService
<IToolboxService>();
1896
if (_toolboxService?.GetSelectedToolboxItem(
GetService
<IDesignerHost>()) is not null)
1927
GetService
<ISelectionService>()?.SetSelectedComponents(
2196
bool handled =
GetService
<ToolStripKeyboardHandlingService>()?.OnContextMenu(location.X, location.Y) ?? false;
2303
private IOverlayService? OverlayService => _overlayService ??=
GetService
<IOverlayService>();
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
144
_selectionService =
GetService
<ISelectionService>();
148
_behaviorService =
GetService
<BehaviorService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
304
IComponentChangeService? componentChangeService =
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
125
internal ISelectionService SelectionService =>
GetService
<ISelectionService>();
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
130
GetService
<IDesignerHost>();
235
IComponentChangeService changeService =
GetService
<IComponentChangeService>();
289
IDesignerHost host =
GetService
<IDesignerHost>();
312
_toolStripAdornerWindowService ??=
GetService
<ToolStripAdornerWindowService>();
444
GetService
<BehaviorService>()?.SyncSelection();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
145
GetService
<IComponentChangeService>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2135
var changeService =
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
58
_selectionManager ??=
GetService
<SelectionManager>();
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
319
var selMgr =
GetService
<SelectionManager>();
358
SelectionManager? selMgr =
GetService
<SelectionManager>();
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
390
_selectionService ??=
GetService
<ISelectionService>();
System\Windows\Forms\Design\ToolStripDesigner.cs (10)
391
internal ISelectionService SelectionService => _selectionService ??=
GetService
<ISelectionService>();
424
_keyboardHandlingService =
GetService
<ToolStripKeyboardHandlingService>();
672
GetService
<SelectionManager>().BodyGlyphAdorner.Glyphs.Insert(0, bodyGlyphForItem);
1432
_toolStripAdornerWindowService =
GetService
<ToolStripAdornerWindowService>();
1443
if (
GetService
<ToolStripKeyboardHandlingService>() is null)
1449
if (
GetService
<ISupportInSituService>() is null)
2061
GetService
<BehaviorService>()?.ProcessPaintMessage(r);
2109
_toolboxService ??=
GetService
<IToolboxService>();
2180
SelectionManager selectionManager =
GetService
<SelectionManager>();
2451
GetService
<IUIService>().ShowError(ex.Message);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (4)
145
GetService
<BehaviorService>()?.Invalidate(bounds);
315
GetService
<ToolStripAdornerWindowService>()?.Invalidate();
700
GetService
<SelectionManager>()?.BodyGlyphAdorner.Glyphs.Insert(0, _dummyToolStripGlyph);
705
GetService
<ToolStripKeyboardHandlingService>().SelectedDesignerControl = selectedItem;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (9)
196
GetService
<BehaviorService>()?.SyncSelection();
326
SelectionManager selectionManager =
GetService
<SelectionManager>();
327
BehaviorService behaviorService =
GetService
<BehaviorService>();
333
IDesignerHost designerHost =
GetService
<IDesignerHost>();
578
Rectangle parentBounds =
GetService
<BehaviorService>().ControlRectInAdornerWindow((Control)ImmediateParent);
1010
GetService
<SelectionManager>().Refresh();
1014
GetService
<BehaviorService>().Invalidate(parentDropDown.Bounds);
1222
BehaviorService behaviorService =
GetService
<BehaviorService>();
1275
SelectionManager selectionManager =
GetService
<SelectionManager>();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (12)
316
=> _keyboardHandlingService ??=
GetService
<ToolStripKeyboardHandlingService>();
353
private IComponentChangeService ComponentChangeService => _componentChangeService ??=
GetService
<IComponentChangeService>();
693
GetService
<SelectionManager>().NeedRefresh = false;
824
GetService
<IUIService>().ShowError(ex.Message);
1079
GetService
<BehaviorService>()?.ProcessPaintMessage(r);
1102
GetService
<BehaviorService>()?.Invalidate();
1188
GetService
<BehaviorService>()?.Invalidate(invalidatingRegion);
1518
_toolStripAdornerWindowService =
GetService
<ToolStripAdornerWindowService>();
1519
_designerHost =
GetService
<IDesignerHost>();
1611
GetService
<SelectionManager>()?.Refresh();
1614
GetService
<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds);
1671
IComponentChangeService changeService =
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
406
SelectionManager? selectionManager =
GetService
<SelectionManager>();