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