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>();
1770
_eventService ??=
GetService
<IEventHandlerService>();
1906
_toolboxService ??=
GetService
<IToolboxService>();
1908
if (_toolboxService?.GetSelectedToolboxItem(
GetService
<IDesignerHost>()) is not null)
1939
GetService
<ISelectionService>()?.SetSelectedComponents(
2208
bool handled =
GetService
<ToolStripKeyboardHandlingService>()?.OnContextMenu(location.X, location.Y) ?? false;
2315
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)
2134
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>();
678
GetService
<SelectionManager>().BodyGlyphAdorner.Glyphs.Insert(0, bodyGlyphForItem);
1439
_toolStripAdornerWindowService =
GetService
<ToolStripAdornerWindowService>();
1450
if (
GetService
<ToolStripKeyboardHandlingService>() is null)
1456
if (
GetService
<ISupportInSituService>() is null)
2080
GetService
<BehaviorService>()?.ProcessPaintMessage(r);
2128
_toolboxService ??=
GetService
<IToolboxService>();
2199
SelectionManager selectionManager =
GetService
<SelectionManager>();
2470
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>();
703
GetService
<SelectionManager>().NeedRefresh = false;
837
GetService
<IUIService>().ShowError(ex.Message);
1095
GetService
<BehaviorService>()?.ProcessPaintMessage(r);
1118
GetService
<BehaviorService>()?.Invalidate();
1204
GetService
<BehaviorService>()?.Invalidate(invalidatingRegion);
1534
_toolStripAdornerWindowService =
GetService
<ToolStripAdornerWindowService>();
1535
_designerHost =
GetService
<IDesignerHost>();
1627
GetService
<SelectionManager>()?.Refresh();
1630
GetService
<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds);
1687
IComponentChangeService changeService =
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
406
SelectionManager? selectionManager =
GetService
<SelectionManager>();