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
179 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 (61)
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? editorService))
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\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? editorService))
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 (114)
BinaryEditorTests.cs (2)
17Mock<IWindowsFormsEditorService> editorService = new(); 22serviceProvider.Setup(s => s.GetService(typeof(IWindowsFormsEditorService))).Returns(editorService.Object);
System\ComponentModel\Design\CollectionEditorTests.cs (30)
151Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 158.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 194Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 201.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 242Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 249.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 292Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 299.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 407Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 414.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 444Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 451.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 521Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 528.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 554Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 561.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 594Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 601.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 641Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 648.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 688Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 697.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 730Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 733.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 839Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 846.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 943Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 950.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 986Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 993.Setup(p => p.GetService(typeof(IWindowsFormsEditorService)))
System\ComponentModel\Design\CollectionFormTests.cs (26)
108Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 115.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 164Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 171.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 223Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 230.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 282Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 289.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 341Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 348.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 389Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 396.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 501Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 508.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 545Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 552.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 594Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 601.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 645Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 652.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 716Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 723.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 760Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 767.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 809Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 877public new DialogResult ShowEditorDialog(IWindowsFormsEditorService edSvc) => base.ShowEditorDialog(edSvc);
System\ComponentModel\Design\MultilineStringEditorTests.cs (5)
32Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 35.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 42mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 47mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (5)
42Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 45.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 52mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 57mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 58mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Drawing\Design\ColorEditorTests.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\Drawing\Design\CursorEditorTests.cs (5)
33Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 36.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 43mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 49mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Drawing\Design\FontNameEditorTests.cs (4)
39Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 42.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 46mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Never()); 50mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Never());
System\Windows\Forms\Design\AnchorEditorTests.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\BorderSidesEditorTests.cs (5)
33Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 36.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 43mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 49mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Windows\Forms\Design\DockEditorTests.cs (5)
33Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 36.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 43mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 49mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2));
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
17private readonly Mock<IWindowsFormsEditorService> _mockEditorService; 30_provider.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))).Returns(_mockEditorService.Object);
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (10)
22Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 29.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 46IWindowsFormsEditorService? editorService = null; 50.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 68Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 74.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 104Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 110.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 137Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 143.Setup(p => p.GetService(typeof(IWindowsFormsEditorService)))
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (5)
33Mock<IWindowsFormsEditorService> mockEditorService = new(MockBehavior.Strict); 36.Setup(p => p.GetService(typeof(IWindowsFormsEditorService))) 43mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Once()); 48mockServiceProvider.Verify(p => p.GetService(typeof(IWindowsFormsEditorService)), Times.Exactly(2)); 49mockServiceProvider.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)))