183 references to IUIService
System.Windows.Forms (16)
System\Windows\Forms\ActiveX\AxHost.AxPropertyTypeEditor.cs (3)
38IUIService? uiSvc = (IUIService?)provider?.GetService(typeof(IUIService));
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
127if (!context.TryGetService(out IUIService? uiService))
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (3)
33IUIService? uiSvc = (IUIService?)provider.GetService(typeof(IUIService));
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
53if (provider.TryGetService(out IUIService? uiService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2001if (TryGetService(out IUIService? uiService)) 3127var uiService = GetService<IUIService>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1102if (this.TryGetService(out IUIService? uiService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionEditor.cs (1)
21if (context.TryGetService(out IUIService? uiService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
4874if (TryGetService(out IUIService? uiService)) 4939if (TryGetService(out IUIService? uiService)) 5012if (TryGetService(out IUIService? uiService))
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
170if (_component.Site?.TryGetService(out IUIService? uiService) == true)
System.Windows.Forms.Design (159)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (2)
151if (GetService(typeof(IUIService)) is IUIService uis)
System\ComponentModel\Design\DesignerActionPanel.cs (4)
62IUIService? uiService = _serviceProvider.GetService<IUIService>(); 726IUIService? uiService = _serviceProvider.GetService<IUIService>();
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
419IUIService? uiService = ServiceProvider.GetService<IUIService>();
System\ComponentModel\Design\DesignerActionUI.cs (1)
99if (serviceProvider.TryGetService(out IUIService? uiService))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
167IUIService? uis = _serviceProvider.GetService<IUIService>();
System\Windows\Forms\Design\BaseContextMenuStrip.cs (4)
120if (_serviceProvider.GetService(typeof(IUIService)) is IUIService uis) 200if (_serviceProvider.TryGetService(out IUIService? uis)) 237if (_serviceProvider.TryGetService(out IUIService? uis))
System\Windows\Forms\Design\Behavior\BehaviorService.cs (3)
455IUIService? uiService = _serviceProvider.GetService<IUIService>(); 578_serviceProvider.GetService<IUIService>()?.ShowError(ex);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
164if (serviceProvider.GetService(typeof(IUIService)) is IUIService uiService)
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (3)
102IUIService uiService = (IUIService)_provider.GetService(typeof(IUIService));
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
171IUIService uiSvc = (IUIService)((IServiceProvider)this).GetService(typeof(IUIService));
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (3)
23private readonly IUIService? _uiService; 33IUIService? uiService) : this(commandSet, 77IUIService? uiService)
System\Windows\Forms\Design\CommandSet.cs (2)
53private readonly IUIService? _uiService; 73_uiService = site.GetService<IUIService>();
System\Windows\Forms\Design\CommandSet.ImmediateCommandSetItem.cs (1)
21public ImmediateCommandSetItem(CommandSet commandSet, EventHandler statusHandler, EventHandler invokeHandler, CommandID id, IUIService? uiService)
System\Windows\Forms\Design\ComponentTray.cs (8)
121if (GetService(typeof(IUIService)) is IUIService uiService) 833IUIService uis = (IUIService)GetService(typeof(IUIService)); 1397IUIService uiService = (IUIService)GetService(typeof(IUIService));
System\Windows\Forms\Design\ControlDesigner.cs (1)
421if (TryGetService(out IUIService? uis))
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (7)
56if (_liveDataGridView.Site.TryGetService(out IUIService? uiService)) 133IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 650IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>(); 788IUIService? uiService = _liveDataGridView.Site?.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
23IUIService? uiService = provider.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
280IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>(); 795IUIService? uiService = _liveDataGridView?.Site?.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
73IUIService? uiService = dataGridView.Site.GetService<IUIService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
703internal static void ShowErrorDialog(IUIService? uiService, Exception ex, Control? dataGridView) 722internal static void ShowErrorDialog(IUIService? uiService, string errorString, Control? dataGridView) 798if (Component.Site.TryGetService(out IUIService? service))
System\Windows\Forms\Design\DesignBindingPicker.cs (18)
404IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService; 1260IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService; 1294IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService; 1303IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService; 1447IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService; 1453IUIService? uiService = _serviceProvider?.GetService(typeof(IUIService)) as IUIService;
System\Windows\Forms\Design\DesignerFrame.cs (2)
32private readonly IUIService? _uiService; 42_uiService = _designerSite.GetService<IUIService>();
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
110IUIService? uiSvc = host.GetService<IUIService>();
System\Windows\Forms\Design\EditorServiceContext.cs (2)
125IUIService? uiSvc = this.GetService<IUIService>();
System\Windows\Forms\Design\ListViewDesigner.cs (2)
157ShowErrorDialog(Component.Site.GetService<IUIService>(), ex, (ListView)Component); 188private static void ShowErrorDialog(IUIService uiService, InvalidOperationException ex, Control control)
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (3)
17private readonly IUIService? _uiSvc; 30_uiSvc = GetService(typeof(IUIService)) as IUIService;
System\Windows\Forms\Design\MaskPropertyEditor.cs (3)
19/// The <see cref="IUIService"/> is used to show the mask designer dialog within VS so it doesn't get 25IUIService? uiService, 67provider.GetService<IUIService>(),
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
28if (serviceProvider.TryGetService(out IUIService? uis))
System\Windows\Forms\Design\OleDragDropHandler.cs (5)
171IUIService? uiService = GetService<IUIService>(); 206IUIService? uiService = GetService<IUIService>(); 227if (TryGetService(out IUIService? uiService))
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
2355IUIService uiSvc = (IUIService)GetService(typeof(IUIService));
System\Windows\Forms\Design\SelectionUIService.cs (2)
124IUIService? uis = _host.GetService<IUIService>();
System\Windows\Forms\Design\SplitContainerDesigner.cs (3)
326var uiService = (IUIService?)Component?.Site?.GetService(typeof(IUIService));
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
185var uis = GetService(typeof(IUIService)) as IUIService;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (6)
224IUIService uiService = (IUIService)_provider.GetService(typeof(IUIService)); 367IUIService uiService = (IUIService)_provider.GetService(typeof(IUIService));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (27)
359IUIService uis = GetService(typeof(IUIService)) as IUIService; 625IUIService uiService = GetService(typeof(IUIService)) as IUIService; 773IUIService uiService = (IUIService)GetService(typeof(IUIService)); 785IUIService uiService = (IUIService)GetService(typeof(IUIService)); 1703IUIService uiService = (IUIService)GetService(typeof(IUIService)); 1780IUIService uiService = (IUIService)GetService(typeof(IUIService)); 1942IUIService uiService = (IUIService)GetService(typeof(IUIService)); 2037IUIService uiService = (IUIService)GetService(typeof(IUIService)); 2056IUIService uiService = (IUIService)GetService(typeof(IUIService));
System\Windows\Forms\Design\TabOrder.cs (3)
47IUIService? uisvc = (IUIService?)host.GetService(typeof(IUIService));
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2451GetService<IUIService>().ShowError(ex.Message);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
390if (serviceProvider.GetService(typeof(IUIService)) is IUIService uis)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (10)
79if (_serviceProvider.GetService(typeof(IUIService)) is IUIService uis) 165if (_serviceProvider.GetService(typeof(IUIService)) is IUIService uis) 245IUIService uiService = (IUIService)_serviceProvider.GetService(typeof(IUIService)); 613IUIService uiService = (IUIService)_serviceProvider.GetService(typeof(IUIService));
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
340&& TryGetService(out IUIService uiService))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
824GetService<IUIService>().ShowError(ex.Message);
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\CollectionFormTests.cs (4)
400Mock<IUIService> mockService = new(MockBehavior.Strict); 423.Setup(c => c.GetService(typeof(IUIService))) 727Mock<IUIService> mockService = new(MockBehavior.Strict); 743.Setup(c => c.GetService(typeof(IUIService)))
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (2)
15Mock<IUIService> uiServiceMock = new(); 18serviceProviderMock.Setup(sp => sp.GetService(typeof(IUIService))).Returns(uiServiceMock.Object);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionListTests.cs (2)
15private readonly Mock<IUIService> _mockUIService; 36mockSite.Setup(s => s.GetService(typeof(IUIService))).Returns(_mockUIService.Object);