75 references to GetService
System.Windows.Forms (11)
System\Windows\Forms\Control.cs (2)
646
ambientProperties = Site is not null ? Site.
GetService
<AmbientProperties>() : GetService<AmbientProperties>();
3011
newAmbients = value.
GetService
<AmbientProperties>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
1157
ActiveDesigner = value?.
GetService
<IDesignerHost>();
1480
host = site.
GetService
<IDesignerHost>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
313
_eventBindings ??= this.
GetService
<IEventBindingService>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
457
_eventBindings ??= this.
GetService
<IEventBindingService>();
623
_eventBindings ??= this.
GetService
<IEventBindingService>();
823
_eventBindings ??= this.
GetService
<IEventBindingService>();
852
_eventBindings ??= component.Site?.
GetService
<IEventBindingService>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
104
=> _changeService ?? this.
GetService
<IComponentChangeService>();
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (1)
97
ISelectionService? selectionService = site.
GetService
<ISelectionService>();
System.Windows.Forms.Design (64)
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)
416
IUIService? uiService = ServiceProvider.
GetService
<IUIService>();
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (2)
19
private IComponentChangeService? ComponentChangeService => _serviceProvider.
GetService
<IComponentChangeService>();
21
public IContainer? Container => _serviceProvider.
GetService
<IContainer>();
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\DesignerActionUIService.cs (1)
34
IDesignerHost? host = _serviceProvider.
GetService
<IDesignerHost>();
System\ComponentModel\Design\DesignerEventService.cs (5)
120
IDesignerHost? host = surface.
GetService
<IDesignerHost>();
146
IDesignerHost? host = surface.
GetService
<IDesignerHost>();
237
ISelectionService? ss = provider.
GetService
<ISelectionService>();
238
IComponentChangeService? cs = provider.
GetService
<IComponentChangeService>();
239
IDesignerHost? host = provider.
GetService
<IDesignerHost>();
System\ComponentModel\Design\DesignSurfaceManager.cs (3)
50
get => EventService?.ActiveDesigner?.
GetService
<DesignSurface>();
337
DesignSurface? oldSurface = e.OldDesigner?.
GetService
<DesignSurface>();
338
DesignSurface? newSurface = e.NewDesigner?.
GetService
<DesignSurface>();
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
87
IReferenceService? rs = _eventService._provider.
GetService
<IReferenceService>();
102
IDictionaryService? ds = site.
GetService
<IDictionaryService>();
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\ReferenceService.cs (1)
69
IComponentChangeService? cs = _provider.
GetService
<IComponentChangeService>();
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
492
if (manager.
GetService
<IContainer>() is { } container)
577
IEventBindingService? ebs = manager.
GetService
<IEventBindingService>();
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
53
TypeConverter? modifierConverter = context?.
GetService
<CodeDomProvider>()?.GetConverter(typeof(MemberAttributes));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (3)
51
_host ??= component.Site?.
GetService
<IDesignerHost>();
129
IDictionaryService? dictionary = site.
GetService
<IDictionaryService>();
143
CodeTypeDeclaration? typeDecl = site.
GetService
<CodeTypeDeclaration>();
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
58
_host ??= component.Site?.
GetService
<IDesignerHost>();
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
75
_providerService = provider.
GetService
<IExtenderProviderService>()
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
30
_host = serviceProvider.
GetService
<IDesignerHost>();
167
IUIService? uis = _serviceProvider.
GetService
<IUIService>();
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
312
IReferenceService? referenceService = manager.
GetService
<IReferenceService>();
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (8)
181
targetProvider = provider.
GetService
<TypeDescriptionProviderService>()?.GetProvider(type);
498
IEventBindingService? evtSvc = manager.
GetService
<IEventBindingService>();
684
if (manager.
GetService
<IDesignerHost>() is { } host)
863
var changeService = manager.
GetService
<IComponentChangeService>();
1232
IEventBindingService? evtSvc = manager.
GetService
<IEventBindingService>();
1685
if (manager.
GetService
<IReferenceService>() is { } refSvc)
2064
INameCreationService? ns = manager.
GetService
<INameCreationService>();
2440
name = manager.
GetService
<IReferenceService>()?.GetName(value);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
258
IContainer? container = manager.
GetService
<IContainer>();
348
IDesignerSerializationManager? mainManager = manager.
GetService
<IDesignerSerializationManager>();
360
ComponentCache? cache = manager.
GetService
<ComponentCache>();
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
37
IEventBindingService? eventBindings = manager.
GetService
<IEventBindingService>();
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
297
MemberRelationshipService? relationships = manager.
GetService
<MemberRelationshipService>();
403
MemberRelationshipService? relationships = manager.
GetService
<MemberRelationshipService>();
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
323
IResourceService? resSvc = _manager.
GetService
<IResourceService>();
544
IResourceService? service = manager.
GetService
<IResourceService>();
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
47
CodeDomProvider? provider = manager.
GetService
<CodeDomProvider>();
259
IContainer? container = manager.
GetService
<IContainer>();