124 references to GetService
System.Windows.Forms.Design (124)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
956IComponentChangeService? changeService = _editor.Context?.GetService<IComponentChangeService>();
System\ComponentModel\Design\CollectionEditor.cs (2)
238IDesignerHost? host = Context?.GetService<IDesignerHost>(); 315inheritanceService = Context?.GetService<IInheritanceService>();
System\ComponentModel\Design\DesignerActionPanel.cs (4)
62IUIService? uiService = _serviceProvider.GetService<IUIService>(); 610DesignerActionService? actionService = _serviceProvider.GetService<DesignerActionService>(); 621IDesignerHost? host = serviceProvider.GetService<IDesignerHost>(); 726IUIService? uiService = _serviceProvider.GetService<IUIService>();
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
419IUIService? uiService = ServiceProvider.GetService<IUIService>();
System\ComponentModel\Design\DesignerActionService.cs (4)
36IDesignerHost? host = serviceProvider.GetService<IDesignerHost>(); 44_selectionService = serviceProvider.GetService<ISelectionService>(); 133IDesignerHost? host = _serviceProvider.GetService<IDesignerHost>(); 251DesignerActionUIService? designerActionUIService = container.GetService<DesignerActionUIService>();
System\ComponentModel\Design\DesignerActionUI.cs (6)
56IMenuCommandService? menuCommandService = serviceProvider.GetService<IMenuCommandService>(); 130IMenuCommandService? mcs = _serviceProvider.GetService<IMenuCommandService>(); 192ComponentTray? componentTray = _serviceProvider.GetService<ComponentTray>(); 279IDesignerHost? host = _serviceProvider.GetService<IDesignerHost>(); 350ComponentTray? compTray = _serviceProvider.GetService<ComponentTray>(); 531_serviceProvider.GetService<ComponentTray>()?.SelectionGlyphs?.Remove(glyph);
System\ComponentModel\Design\InheritanceService.cs (3)
75ncs = site.GetService<INameCreationService>(); 76cs = site.GetService<IComponentChangeService>(); 294return DocumentDesigner.s_manager?.GetService<TypeDescriptionProviderService>()?.GetProvider(type);
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
30_host = serviceProvider.GetService<IDesignerHost>(); 167IUIService? uis = _serviceProvider.GetService<IUIService>();
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
26_designerHost = _serviceProvider?.GetService<IDesignerHost>(); 77SelectionManager? selectionManager = _serviceProvider?.GetService<SelectionManager>(); 151IComponentChangeService? componentChangeService = _serviceProvider?.GetService<IComponentChangeService>(); 214ISelectionService? selectionService = _serviceProvider?.GetService<ISelectionService>();
System\Windows\Forms\Design\Behavior\BehaviorService.cs (8)
62IOverlayService? os = serviceProvider.GetService<IOverlayService>(); 81IMenuCommandService? menuCommandService = serviceProvider.GetService<IMenuCommandService>(); 82IDesignerHost? host = serviceProvider.GetService<IDesignerHost>(); 167IOverlayService? os = _serviceProvider.GetService<IOverlayService>(); 455IUIService? uiService = _serviceProvider.GetService<IUIService>(); 578_serviceProvider.GetService<IUIService>()?.ShowError(ex); 586_toolboxSvc ??= _serviceProvider.GetService<IToolboxService>(); 789IDesignerHost? 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)
81DesignerOptionService? options = _designerHost.GetService<DesignerOptionService>();
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
28_behaviorService = _provider?.GetService<BehaviorService>(); 34IDesignerHost? host = _provider?.GetService<IDesignerHost>();
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
54IDesignerHost? host = Component?.Site?.GetService<IDesignerHost>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
26_host = _provider.GetService<IDesignerHost>(); 63var changeService = _provider.GetService<IComponentChangeService>();
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
59_componentChangeService ??= this.GetService<IComponentChangeService>();
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
58IComponentChangeService? changeService = Context.GetService<IComponentChangeService>();
System\Windows\Forms\Design\CommandSet.cs (4)
73_uiService = site.GetService<IUIService>(); 200SelectionService = site.GetService<ISelectionService>(); 220IDictionaryService? ds = site.GetService<IDictionaryService>(); 499IDesignerHost? host = site.GetService<IDesignerHost>();
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (3)
29IContainer? container = manager.GetService<IContainer>(); 177IDesignerHost? host = manager.GetService<IDesignerHost>(); 226IMultitargetHelperService? multiTargetHelper = host.GetService<IMultitargetHelperService>();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (9)
134IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 156IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 585IHelpService? helpService = _liveDataGridView.Site?.GetService<IHelpService>(); 639nameCreationService = _liveDataGridView.Site.GetService<INameCreationService>(); 651IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 666ITypeDiscoveryService? discoveryService = host.GetService<ITypeDiscoveryService>(); 777IDesignerHost? host = _liveDataGridView.Site?.GetService<IDesignerHost>(); 779INameCreationService? nameCreationService = _liveDataGridView.Site?.GetService<INameCreationService>(); 795IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
18if (provider.GetService<IWindowsFormsEditorService>() is null) 23IUIService? uiService = provider.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
116ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 182IComponentChangeService? changeService = _liveDataGridView!.Site?.GetService<IComponentChangeService>(); 280IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 790IHelpService? helpService = _liveDataGridView?.Site?.GetService<IHelpService>(); 797IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 875ITypeResolutionService? tr = _liveDataGridView?.Site?.GetService<ITypeResolutionService>(); 1092IComponentChangeService? newComponentChangeService = dataGridView.Site?.GetService<IComponentChangeService>();
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (3)
54host = dataGridView.Site.GetService<IDesignerHost>(); 55nameCreationService = dataGridView.Site.GetService<INameCreationService>(); 73IUIService? uiService = dataGridView.Site.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42IComponentChangeService? componentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 452IComponentChangeService? changeService = site?.GetService<IComponentChangeService>(); 533IDesignerHost? host = site?.GetService<IDesignerHost>(); 578IComponentChangeService? changeService = site?.GetService<IComponentChangeService>(); 742IDesignerHost? host = Component.Site?.GetService<IDesignerHost>(); 770IDesignerHost? host = Component.Site?.GetService<IDesignerHost>(); 843IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 845IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 933IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 948IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 979IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 994IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1025IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1040IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1071IDesignerHost? host = dataGridView.Site?.GetService<IDesignerHost>(); 1086IComponentChangeService? 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>(); 63private BehaviorService? BehaviorService => _behaviorService ??= _designerSite.GetService<BehaviorService>(); 118ISelectionService? selSvc = _designerSite.GetService<ISelectionService>(); 366private BehaviorService? BehaviorService => _behaviorService ??= _provider.GetService<BehaviorService>();
System\Windows\Forms\Design\DesignerUtils.cs (2)
743ComponentSerializationService? css = svcProvider.GetService<ComponentSerializationService>(); 744IDesignerHost? host = svcProvider.GetService<IDesignerHost>();
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
110IUIService? uiSvc = host.GetService<IUIService>(); 175ITypeResolutionService? trs = host.GetService<ITypeResolutionService>();
System\Windows\Forms\Design\EditorServiceContext.cs (1)
125IUIService? uiSvc = this.GetService<IUIService>();
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
26IHelpService? helpService = provider.GetService<IHelpService>();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
157ShowErrorDialog(Component.Site.GetService<IUIService>(), ex, (ListView)Component);
System\Windows\Forms\Design\MaskPropertyEditor.cs (3)
66provider.GetService<ITypeDiscoveryService>(), 67provider.GetService<IUIService>(), 69provider.GetService<IHelpService>());
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
123ComponentTray? tray = host.GetService<ComponentTray>();
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (3)
41IDesignerSerializationService? ds = _serviceProvider.GetService<IDesignerSerializationService>(); 99IDesignerHost? host = _serviceProvider.GetService<IDesignerHost>(); 211IDesignerSerializationService 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>(); 124IUIService? uis = _host.GetService<IUIService>();
System\Windows\Forms\Design\StatusCommandUI.cs (1)
28private IMenuCommandService? MenuService => _menuService ??= _serviceProvider.GetService<IMenuCommandService>();
System\Windows\Forms\Design\StyleEditorForm.cs (2)
102var host = _tableLayoutPanel.Site.GetService<IDesignerHost>(); 106_componentChangeService = host.GetService<IComponentChangeService>();
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
48IDesignerHost? host = manager.GetService<IDesignerHost>();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2716var 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>();