124 references to GetService
System.Windows.Forms.Design (124)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
956
IComponentChangeService? changeService = _editor.Context?.
GetService
<IComponentChangeService>();
System\ComponentModel\Design\CollectionEditor.cs (2)
238
IDesignerHost? host = Context?.
GetService
<IDesignerHost>();
315
inheritanceService = Context?.
GetService
<IInheritanceService>();
System\ComponentModel\Design\DesignerActionPanel.cs (4)
62
IUIService? uiService = _serviceProvider.
GetService
<IUIService>();
610
DesignerActionService? actionService = _serviceProvider.
GetService
<DesignerActionService>();
621
IDesignerHost? host = serviceProvider.
GetService
<IDesignerHost>();
726
IUIService? uiService = _serviceProvider.
GetService
<IUIService>();
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
419
IUIService? uiService = ServiceProvider.
GetService
<IUIService>();
System\ComponentModel\Design\DesignerActionService.cs (4)
36
IDesignerHost? host = serviceProvider.
GetService
<IDesignerHost>();
44
_selectionService = serviceProvider.
GetService
<ISelectionService>();
133
IDesignerHost? host = _serviceProvider.
GetService
<IDesignerHost>();
251
DesignerActionUIService? designerActionUIService = container.
GetService
<DesignerActionUIService>();
System\ComponentModel\Design\DesignerActionUI.cs (6)
56
IMenuCommandService? menuCommandService = serviceProvider.
GetService
<IMenuCommandService>();
130
IMenuCommandService? mcs = _serviceProvider.
GetService
<IMenuCommandService>();
192
ComponentTray? componentTray = _serviceProvider.
GetService
<ComponentTray>();
279
IDesignerHost? host = _serviceProvider.
GetService
<IDesignerHost>();
350
ComponentTray? compTray = _serviceProvider.
GetService
<ComponentTray>();
531
_serviceProvider.
GetService
<ComponentTray>()?.SelectionGlyphs?.Remove(glyph);
System\ComponentModel\Design\InheritanceService.cs (3)
75
ncs = site.
GetService
<INameCreationService>();
76
cs = site.
GetService
<IComponentChangeService>();
294
return DocumentDesigner.s_manager?.
GetService
<TypeDescriptionProviderService>()?.GetProvider(type);
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
30
_host = serviceProvider.
GetService
<IDesignerHost>();
167
IUIService? uis = _serviceProvider.
GetService
<IUIService>();
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
26
_designerHost = _serviceProvider?.
GetService
<IDesignerHost>();
77
SelectionManager? selectionManager = _serviceProvider?.
GetService
<SelectionManager>();
151
IComponentChangeService? componentChangeService = _serviceProvider?.
GetService
<IComponentChangeService>();
214
ISelectionService? selectionService = _serviceProvider?.
GetService
<ISelectionService>();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (8)
62
IOverlayService? os = serviceProvider.
GetService
<IOverlayService>();
81
IMenuCommandService? menuCommandService = serviceProvider.
GetService
<IMenuCommandService>();
82
IDesignerHost? host = serviceProvider.
GetService
<IDesignerHost>();
167
IOverlayService? os = _serviceProvider.
GetService
<IOverlayService>();
455
IUIService? uiService = _serviceProvider.
GetService
<IUIService>();
578
_serviceProvider.
GetService
<IUIService>()?.ShowError(ex);
586
_toolboxSvc ??= _serviceProvider.
GetService
<IToolboxService>();
789
IDesignerHost? host = _serviceProvider.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\Behavior\DesignerActionKeyboardBehavior.cs (2)
21
_menuService = serviceProvider.
GetService
<IMenuCommandService>();
23
_daUISvc = serviceProvider.
GetService
<DesignerActionUIService>();
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
81
DesignerOptionService? options = _designerHost.
GetService
<DesignerOptionService>();
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
28
_behaviorService = _provider?.
GetService
<BehaviorService>();
34
IDesignerHost? host = _provider?.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
54
IDesignerHost? host = Component?.Site?.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
26
_host = _provider.
GetService
<IDesignerHost>();
63
var changeService = _provider.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
59
_componentChangeService ??= this.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
58
IComponentChangeService? changeService = Context.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\CommandSet.cs (4)
73
_uiService = site.
GetService
<IUIService>();
200
SelectionService = site.
GetService
<ISelectionService>();
220
IDictionaryService? ds = site.
GetService
<IDictionaryService>();
499
IDesignerHost? host = site.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (3)
29
IContainer? container = manager.
GetService
<IContainer>();
177
IDesignerHost? host = manager.
GetService
<IDesignerHost>();
226
IMultitargetHelperService? multiTargetHelper = host.
GetService
<IMultitargetHelperService>();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (9)
133
IUIService? uiService = _liveDataGridView.Site?.
GetService
<IUIService>();
155
IDesignerHost? host = _liveDataGridView.Site?.
GetService
<IDesignerHost>();
584
IHelpService? helpService = _liveDataGridView.Site?.
GetService
<IHelpService>();
638
nameCreationService = _liveDataGridView.Site.
GetService
<INameCreationService>();
650
IUIService? uiService = _liveDataGridView.Site?.
GetService
<IUIService>();
665
ITypeDiscoveryService? discoveryService = host.
GetService
<ITypeDiscoveryService>();
770
IDesignerHost? host = _liveDataGridView.Site?.
GetService
<IDesignerHost>();
772
INameCreationService? nameCreationService = _liveDataGridView.Site?.
GetService
<INameCreationService>();
788
IUIService? uiService = _liveDataGridView.Site?.
GetService
<IUIService>();
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
18
if (provider.
GetService
<IWindowsFormsEditorService>() is null)
23
IUIService? uiService = provider.
GetService
<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
116
ITypeResolutionService? tr = _liveDataGridView?.Site?.
GetService
<ITypeResolutionService>();
182
IComponentChangeService? changeService = _liveDataGridView!.Site?.
GetService
<IComponentChangeService>();
280
IUIService? uiService = _liveDataGridView?.Site?.
GetService
<IUIService>();
788
IHelpService? helpService = _liveDataGridView?.Site?.
GetService
<IHelpService>();
795
IUIService? uiService = _liveDataGridView?.Site?.
GetService
<IUIService>();
873
ITypeResolutionService? tr = _liveDataGridView?.Site?.
GetService
<ITypeResolutionService>();
1090
IComponentChangeService? newComponentChangeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (3)
54
host = dataGridView.Site.
GetService
<IDesignerHost>();
55
nameCreationService = dataGridView.Site.
GetService
<INameCreationService>();
73
IUIService? uiService = dataGridView.Site.
GetService
<IUIService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42
IComponentChangeService? componentChangeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
452
IComponentChangeService? changeService = site?.
GetService
<IComponentChangeService>();
533
IDesignerHost? host = site?.
GetService
<IDesignerHost>();
578
IComponentChangeService? changeService = site?.
GetService
<IComponentChangeService>();
742
IDesignerHost? host = Component.Site?.
GetService
<IDesignerHost>();
770
IDesignerHost? host = Component.Site?.
GetService
<IDesignerHost>();
842
IDesignerHost? host = dataGridView.Site?.
GetService
<IDesignerHost>();
844
IComponentChangeService? changeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
921
IDesignerHost? host = dataGridView.Site?.
GetService
<IDesignerHost>();
936
IComponentChangeService? changeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
964
IDesignerHost? host = dataGridView.Site?.
GetService
<IDesignerHost>();
979
IComponentChangeService? changeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
1007
IDesignerHost? host = dataGridView.Site?.
GetService
<IDesignerHost>();
1022
IComponentChangeService? changeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
1050
IDesignerHost? host = dataGridView.Site?.
GetService
<IDesignerHost>();
1065
IComponentChangeService? changeService = dataGridView.Site?.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
385
_windowsFormsEditorService = _serviceProvider.
GetService
<IWindowsFormsEditorService>();
386
_dataSourceProviderService = _serviceProvider.
GetService
<DataSourceProviderService>();
387
_typeResolutionService = _serviceProvider.
GetService
<ITypeResolutionService>();
388
_designerHost = _serviceProvider.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\DesignerFrame.cs (4)
42
_uiService = _designerSite.
GetService
<IUIService>();
63
private BehaviorService? BehaviorService => _behaviorService ??= _designerSite.
GetService
<BehaviorService>();
118
ISelectionService? selSvc = _designerSite.
GetService
<ISelectionService>();
366
private BehaviorService? BehaviorService => _behaviorService ??= _provider.
GetService
<BehaviorService>();
System\Windows\Forms\Design\DesignerUtils.cs (2)
743
ComponentSerializationService? css = svcProvider.
GetService
<ComponentSerializationService>();
744
IDesignerHost? host = svcProvider.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
110
IUIService? uiSvc = host.
GetService
<IUIService>();
175
ITypeResolutionService? trs = host.
GetService
<ITypeResolutionService>();
System\Windows\Forms\Design\EditorServiceContext.cs (1)
125
IUIService? uiSvc = this.
GetService
<IUIService>();
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
26
IHelpService? helpService = provider.
GetService
<IHelpService>();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
157
ShowErrorDialog(Component.Site.
GetService
<IUIService>(), ex, (ListView)Component);
System\Windows\Forms\Design\MaskPropertyEditor.cs (3)
66
provider.
GetService
<ITypeDiscoveryService>(),
67
provider.
GetService
<IUIService>(),
69
provider.
GetService
<IHelpService>());
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
123
ComponentTray? tray = host.
GetService
<ComponentTray>();
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (3)
41
IDesignerSerializationService? ds = _serviceProvider.
GetService
<IDesignerSerializationService>();
99
IDesignerHost? host = _serviceProvider.
GetService
<IDesignerHost>();
211
IDesignerSerializationService ds = serviceProvider.
GetService
<IDesignerSerializationService>()!;
System\Windows\Forms\Design\PbrsForward.cs (2)
41
_menuCommandSvc = _sp.
GetService
<IMenuCommandService>();
49
=> _sp.
GetService
<ISupportInSituService>();
System\Windows\Forms\Design\SelectionUIService.cs (2)
72
_selSvc = host.
GetService
<ISelectionService>();
124
IUIService? uis = _host.
GetService
<IUIService>();
System\Windows\Forms\Design\StatusCommandUI.cs (1)
28
private IMenuCommandService? MenuService => _menuService ??= _serviceProvider.
GetService
<IMenuCommandService>();
System\Windows\Forms\Design\StyleEditorForm.cs (2)
102
var host = _tableLayoutPanel.Site.
GetService
<IDesignerHost>();
106
_componentChangeService = host.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
48
IDesignerHost? host = manager.
GetService
<IDesignerHost>();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2716
var changeService = primaryItem.Site.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
324
_designerHost = component.Site?.
GetService
<IDesignerHost>();
335
_componentChangeService = _designerHost.
GetService
<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
123
_designerHost = component.Site.
GetService
<IDesignerHost>();
125
_designSurface = component.Site.
GetService
<DesignSurface>();