4 implementations of IWindowsFormsEditorService
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
20
IWindowsFormsEditorService
,
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
14
private sealed partial class EditorPropertyLine : TextBoxPropertyLine,
IWindowsFormsEditorService
, IServiceProvider
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
17
internal class CollectionEditVerbManager :
IWindowsFormsEditorService
, ITypeDescriptorContext
System\Windows\Forms\Design\EditorServiceContext.cs (1)
15
internal class EditorServiceContext :
IWindowsFormsEditorService
, ITypeDescriptorContext
179 references to IWindowsFormsEditorService
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1378
if (classService == typeof(
IWindowsFormsEditorService
))
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (1)
15
/// The default <see cref="
IWindowsFormsEditorService
"/> is provided to <see cref="UITypeEditor"/>s through
System.Windows.Forms.Design (61)
System\ComponentModel\Design\BinaryEditor.cs (1)
104
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
954
protected internal override DialogResult ShowEditorDialog(
IWindowsFormsEditorService
edSvc)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
182
protected internal virtual DialogResult ShowEditorDialog(
IWindowsFormsEditorService
edSvc)
System\ComponentModel\Design\CollectionEditor.cs (1)
221
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\ComponentModel\Design\DateTimeEditor.cs (1)
17
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (2)
17
private
IWindowsFormsEditorService
_editorService;
19
public DateTimeUI(
IWindowsFormsEditorService
editorService, object? value)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
404
void
IWindowsFormsEditorService
.CloseDropDown()
409
void
IWindowsFormsEditorService
.DropDownControl(Control control)
417
DialogResult
IWindowsFormsEditorService
.ShowDialog(Form dialog)
434
if (serviceType == typeof(
IWindowsFormsEditorService
))
System\ComponentModel\Design\MultilineStringEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
16
private
IWindowsFormsEditorService
? _editorService;
124
internal void BeginEdit(
IWindowsFormsEditorService
editorService, object? value)
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
29
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (2)
14
private
IWindowsFormsEditorService
? _editorService;
177
public void Start(
IWindowsFormsEditorService
edSvc, object? value)
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
18
private
IWindowsFormsEditorService
? _edSvc;
68
public
IWindowsFormsEditorService
? EditorService => _edSvc;
355
public void Start(
IWindowsFormsEditorService
edSvc, object? value)
System\Drawing\Design\ColorEditor.cs (1)
21
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Drawing\Design\ContentAlignmentEditor.cs (1)
21
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Drawing\Design\CursorEditor.cs (1)
24
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
17
private
IWindowsFormsEditorService
? _editorService;
88
public void Start(
IWindowsFormsEditorService
editorService, object? value)
System\Drawing\Design\FontEditor.cs (1)
21
if (!provider.TryGetService(out
IWindowsFormsEditorService
? _))
System\Drawing\Design\IconEditor.cs (1)
58
if (!provider.TryGetService(out
IWindowsFormsEditorService
? _))
System\Drawing\Design\ImageEditor.cs (1)
65
if (!provider.TryGetService(out
IWindowsFormsEditorService
? _))
System\Drawing\Design\SelectionPanelBase.cs (2)
13
private
IWindowsFormsEditorService
? _editorService;
120
public void Start(
IWindowsFormsEditorService
edSvc, object? value)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
22
private
IWindowsFormsEditorService
? _editorService;
144
public void Start(
IWindowsFormsEditorService
edSvc, object? value)
System\Windows\Forms\Design\AnchorEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (2)
41
public
IWindowsFormsEditorService
? EditorService
363
public void Start(
IWindowsFormsEditorService
edSvc, object? value)
System\Windows\Forms\Design\BorderSidesEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\CollectionEditVerbManager.cs (4)
134
if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(
IWindowsFormsEditorService
))
150
void
IWindowsFormsEditorService
.CloseDropDown()
160
void
IWindowsFormsEditorService
.DropDownControl(Control control)
169
DialogResult
IWindowsFormsEditorService
.ShowDialog(Form dialog)
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
18
if (provider.GetService<
IWindowsFormsEditorService
>() is null)
20
throw new InvalidOperationException($"Service provider couldn't fetch {nameof(
IWindowsFormsEditorService
)}.");
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (3)
21
IWindowsFormsEditorService
? windowsFormsEditorService = provider.GetService(typeof(
IWindowsFormsEditorService
)) as
IWindowsFormsEditorService
;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (2)
19
private
IWindowsFormsEditorService
? _windowsFormsEditorService;
77
public void Start(
IWindowsFormsEditorService
edSvc, ITypeDiscoveryService discoveryService, Type defaultType)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
98
private
IWindowsFormsEditorService
? _windowsFormsEditorService; // Service used to invoke the picker inside a modal dropdown
385
_windowsFormsEditorService = _serviceProvider.GetService<
IWindowsFormsEditorService
>();
System\Windows\Forms\Design\DockEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\EditorServiceContext.cs (4)
102
if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(
IWindowsFormsEditorService
))
110
void
IWindowsFormsEditorService
.CloseDropDown()
117
void
IWindowsFormsEditorService
.DropDownControl(Control control)
123
DialogResult
IWindowsFormsEditorService
.ShowDialog(Form dialog)
System\Windows\Forms\Design\FileNameEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? _))
System\Windows\Forms\Design\FormatStringEditor.cs (1)
17
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
32
if (!provider.TryGetService(out
IWindowsFormsEditorService
? _))
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
19
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\MaskedTextBoxTextEditor.cs (1)
13
if (context?.Instance is null || !provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
23
if (!provider.TryGetService(out
IWindowsFormsEditorService
? editorService))
System\Windows\Forms\Design\StyleEditorForm.cs (1)
508
protected internal override DialogResult ShowEditorDialog(
IWindowsFormsEditorService
edSvc)
System.Windows.Forms.Design.Tests (114)
BinaryEditorTests.cs (2)
17
Mock<
IWindowsFormsEditorService
> editorService = new();
22
serviceProvider.Setup(s => s.GetService(typeof(
IWindowsFormsEditorService
))).Returns(editorService.Object);
System\ComponentModel\Design\CollectionEditorTests.cs (30)
151
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
158
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
194
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
201
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
242
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
249
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
292
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
299
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
407
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
414
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
444
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
451
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
521
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
528
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
554
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
561
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
594
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
601
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
641
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
648
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
688
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
697
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
730
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
733
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
839
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
846
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
943
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
950
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
986
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
993
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
System\ComponentModel\Design\CollectionFormTests.cs (26)
108
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
115
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
164
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
171
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
223
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
230
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
282
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
289
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
341
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
348
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
389
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
396
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
501
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
508
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
545
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
552
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
594
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
601
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
645
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
652
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
716
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
723
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
760
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
767
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
809
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
877
public new DialogResult ShowEditorDialog(
IWindowsFormsEditorService
edSvc) => base.ShowEditorDialog(edSvc);
System\ComponentModel\Design\MultilineStringEditorTests.cs (5)
32
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
35
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
42
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
47
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
48
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (5)
42
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
45
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
52
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
57
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
58
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Drawing\Design\ColorEditorTests.cs (5)
34
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
37
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
44
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
49
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
50
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Drawing\Design\CursorEditorTests.cs (5)
33
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
36
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
43
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
48
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
49
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Drawing\Design\FontNameEditorTests.cs (4)
39
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
42
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
46
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Never());
50
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Never());
System\Windows\Forms\Design\AnchorEditorTests.cs (5)
35
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
38
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
45
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
50
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
51
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Windows\Forms\Design\BorderSidesEditorTests.cs (5)
33
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
36
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
43
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
48
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
49
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Windows\Forms\Design\DockEditorTests.cs (5)
33
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
36
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
43
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
48
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
49
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
17
private readonly Mock<
IWindowsFormsEditorService
> _mockEditorService;
30
_provider.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
))).Returns(_mockEditorService.Object);
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (10)
22
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
29
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
46
IWindowsFormsEditorService
? editorService = null;
50
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
68
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
74
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
104
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
110
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
137
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
143
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (5)
33
Mock<
IWindowsFormsEditorService
> mockEditorService = new(MockBehavior.Strict);
36
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
43
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Once());
48
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
49
mockServiceProvider.Verify(p => p.GetService(typeof(
IWindowsFormsEditorService
)), Times.Exactly(2));
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
164
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))
168
.Setup(p => p.GetService(typeof(
IWindowsFormsEditorService
)))