4 implementations of IWindowsFormsEditorService
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
20IWindowsFormsEditorService,
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
14private sealed partial class EditorPropertyLine : TextBoxPropertyLine, IWindowsFormsEditorService, IServiceProvider
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
17internal class CollectionEditVerbManager : IWindowsFormsEditorService, ITypeDescriptorContext
System\Windows\Forms\Design\EditorServiceContext.cs (1)
15internal class EditorServiceContext : IWindowsFormsEditorService, ITypeDescriptorContext
184 references to IWindowsFormsEditorService
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1378if (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 (62)
System\ComponentModel\Design\BinaryEditor.cs (1)
104if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
954protected internal override DialogResult ShowEditorDialog(IWindowsFormsEditorService edSvc)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
182protected internal virtual DialogResult ShowEditorDialog(IWindowsFormsEditorService edSvc)
System\ComponentModel\Design\CollectionEditor.cs (1)
221if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\ComponentModel\Design\DateTimeEditor.cs (1)
17if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (2)
17private IWindowsFormsEditorService _editorService; 19public DateTimeUI(IWindowsFormsEditorService editorService, object? value)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
404void IWindowsFormsEditorService.CloseDropDown() 409void IWindowsFormsEditorService.DropDownControl(Control control) 417DialogResult IWindowsFormsEditorService.ShowDialog(Form dialog) 434if (serviceType == typeof(IWindowsFormsEditorService))
System\ComponentModel\Design\MultilineStringEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
16private IWindowsFormsEditorService? _editorService; 124internal void BeginEdit(IWindowsFormsEditorService editorService, object? value)
System\ComponentModel\Design\ObjectSelectorEditor.cs (1)
29if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (2)
14private IWindowsFormsEditorService? _editorService; 177public void Start(IWindowsFormsEditorService edSvc, object? value)
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
18private IWindowsFormsEditorService? _edSvc; 68public IWindowsFormsEditorService? EditorService => _edSvc; 355public void Start(IWindowsFormsEditorService edSvc, object? value)
System\Drawing\Design\ColorEditor.cs (1)
21if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Drawing\Design\ContentAlignmentEditor.cs (1)
21if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Drawing\Design\CursorEditor.cs (1)
24if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
17private IWindowsFormsEditorService? _editorService; 88public void Start(IWindowsFormsEditorService editorService, object? value)
System\Drawing\Design\FontEditor.cs (1)
21if (!provider.TryGetService(out IWindowsFormsEditorService? _))
System\Drawing\Design\IconEditor.cs (1)
58if (!provider.TryGetService(out IWindowsFormsEditorService? _))
System\Drawing\Design\ImageEditor.cs (1)
65if (!provider.TryGetService(out IWindowsFormsEditorService? _))
System\Drawing\Design\SelectionPanelBase.cs (2)
13private IWindowsFormsEditorService? _editorService; 120public void Start(IWindowsFormsEditorService edSvc, object? value)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
22private IWindowsFormsEditorService? _editorService; 144public void Start(IWindowsFormsEditorService edSvc, object? value)
System\Windows\Forms\Design\AnchorEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (2)
41public IWindowsFormsEditorService? EditorService 363public void Start(IWindowsFormsEditorService edSvc, object? value)
System\Windows\Forms\Design\BorderSidesEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\CollectionEditVerbManager.cs (4)
134if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(IWindowsFormsEditorService)) 150void IWindowsFormsEditorService.CloseDropDown() 160void IWindowsFormsEditorService.DropDownControl(Control control) 169DialogResult IWindowsFormsEditorService.ShowDialog(Form dialog)
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
18if (provider.GetService<IWindowsFormsEditorService>() is null) 20throw new InvalidOperationException($"Service provider couldn't fetch {nameof(IWindowsFormsEditorService)}.");
System\Windows\Forms\Design\DataGridViewColumnCollectionEditor.cs (1)
18!provider.TryGetService(out IWindowsFormsEditorService? editorService) ||
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (3)
21IWindowsFormsEditorService? windowsFormsEditorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (2)
19private IWindowsFormsEditorService? _windowsFormsEditorService; 77public void Start(IWindowsFormsEditorService edSvc, ITypeDiscoveryService discoveryService, Type defaultType)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
98private IWindowsFormsEditorService? _windowsFormsEditorService; // Service used to invoke the picker inside a modal dropdown 385_windowsFormsEditorService = _serviceProvider.GetService<IWindowsFormsEditorService>();
System\Windows\Forms\Design\DockEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\EditorServiceContext.cs (4)
102if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(IWindowsFormsEditorService)) 110void IWindowsFormsEditorService.CloseDropDown() 117void IWindowsFormsEditorService.DropDownControl(Control control) 123DialogResult IWindowsFormsEditorService.ShowDialog(Form dialog)
System\Windows\Forms\Design\FileNameEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? _))
System\Windows\Forms\Design\FormatStringEditor.cs (1)
17if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\ImageListImageEditor.cs (1)
32if (!provider.TryGetService(out IWindowsFormsEditorService? _))
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
19if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\MaskedTextBoxTextEditor.cs (1)
13if (context?.Instance is null || !provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
23if (!provider.TryGetService(out IWindowsFormsEditorService? editorService))
System\Windows\Forms\Design\StyleEditorForm.cs (1)
508protected internal override DialogResult ShowEditorDialog(IWindowsFormsEditorService edSvc)
System.Windows.Forms.Design.Tests (118)
BinaryEditorTests.cs (2)
19Mock<IWindowsFormsEditorService> editorService = new(); 24serviceProvider.Setup(s => s.GetService(typeof(IWindowsFormsEditorService))).Returns(editorService.Object);
DataMemberFieldEditorTests.cs (2)
28providerMock.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))).Returns(new Mock<IWindowsFormsEditorService>().Object);
System\ComponentModel\Design\CollectionEditorTests.cs (28)
133Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 140.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 176Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 183.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 224Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 231.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 274Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 281.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 382Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 389.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 419Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 426.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 496Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 503.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 529Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 536.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 569Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 576.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 616Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 623.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 663Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 672.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 783Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 790.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 886Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 893.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 929Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 936.Setup(p => p.GetService(typeof(IWindowsFormsEditorService)))
System\ComponentModel\Design\CollectionFormTests.cs (26)
110Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 117.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 166Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 173.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 225Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 232.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 284Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 291.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 343Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 350.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 391Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 398.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 503Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 510.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 547Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 554.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 596Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 603.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 647Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 654.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 718Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 725.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 762Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 769.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 810Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 878public new DialogResult ShowEditorDialog(IWindowsFormsEditorService edSvc) => base.ShowEditorDialog(edSvc);
System\ComponentModel\Design\MultilineStringEditorTests.cs (5)
34Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 37.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 44mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 49mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (5)
44Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 47.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 54mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 59mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 60mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Drawing\Design\ColorEditorTests.cs (5)
36Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 39.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 46mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 51mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 52mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Drawing\Design\CursorEditorTests.cs (5)
35Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 38.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 45mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 51mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Drawing\Design\FontNameEditorTests.cs (4)
41Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 44.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Never()); 52mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Never());
System\Windows\Forms\Design\AnchorEditorTests.cs (5)
37Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 40.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 47mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 52mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 53mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Windows\Forms\Design\BorderSidesEditorTests.cs (5)
35Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 38.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 45mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 51mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Windows\Forms\Design\DataGridViewColumnCollectionEditorTests.cs (1)
31mockServiceProvider.Setup(x => x.GetService(typeof(IWindowsFormsEditorService))).Returns(null!);
System\Windows\Forms\Design\DockEditorTests.cs (5)
35Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 38.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 45mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 51mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
15private readonly Mock<IWindowsFormsEditorService> _mockEditorService; 28_provider.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))).Returns(_mockEditorService.Object);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (3)
18Mock<IWindowsFormsEditorService> editorService = new(); 23provider.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))).Returns((object?)null); 26provider.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))).Returns(editorService.Object);
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (10)
20Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 27.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 44IWindowsFormsEditorService? editorService = null; 48.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 66Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 72.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 102Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 108.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 135Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 141.Setup(p => p.GetService(typeof(IWindowsFormsEditorService)))
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (5)
35Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 38.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 45mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 51mockServiceProvider.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)))