2 implementations of IComponentChangeService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
17internal sealed partial class DesignerHost : Container, IDesignerLoaderHost2, IDesignerHostTransactionState, IComponentChangeService, IReflect
System.Windows.Forms.Tests (1)
System\Windows\Forms\PropertyGridTests.cs (1)
4280public class ComponentChangeService : IComponentChangeService
460 references to IComponentChangeService
DesignSurfaceExt (4)
PropertyGridExt.cs (4)
9private IComponentChangeService _componentChangeService; 11private IComponentChangeService ComponentChangeService 15_componentChangeService ??= (IComponentChangeService)_host.GetService(typeof(IComponentChangeService));
netstandard (1)
netstandard.cs (1)
249[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IComponentChangeService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
235[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.IComponentChangeService))]
System.ComponentModel.TypeConverter (28)
System\ComponentModel\Design\ComponentChangedEventArgs.cs (1)
7/// Provides data for the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentChanged'/> event.
System\ComponentModel\Design\ComponentChangedEventHandler.cs (1)
7/// Represents the method that will handle a <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentChanged'/> event.
System\ComponentModel\Design\ComponentChangingEventArgs.cs (1)
7/// Provides data for the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentChanging'/> event.
System\ComponentModel\Design\ComponentEventHandler.cs (4)
7/// Represents the method that will handle the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentAdding'/> , <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentAdded'/>, <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentRemoving'/>, and 8/// <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentRemoved'/> event raised
System\ComponentModel\Design\ComponentRenameEventArgs.cs (1)
7/// Provides data for the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentRename'/> event.
System\ComponentModel\Design\ComponentRenameEventHandler.cs (1)
7/// Represents the method that will handle a <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentRename'/> event.
System\ComponentModel\ITypeDescriptorContext.cs (1)
33/// Raises the <see cref='System.ComponentModel.Design.IComponentChangeService.ComponentChanged'/>
System\ComponentModel\ReflectEventDescriptor.cs (6)
163IComponentChangeService? changeService = null; 168changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService)); 444IComponentChangeService? changeService = null; 449changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService));
System\ComponentModel\ReflectPropertyDescriptor.cs (12)
579IComponentChangeService? changeService = null; 586changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService)); 627IComponentChangeService? changeService = null; 633changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService)); 1027IComponentChangeService? changeService = null; 1034changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService)); 1091IComponentChangeService? changeService = null; 1096changeService = (IComponentChangeService?)site.GetService(typeof(IComponentChangeService));
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
141if (site.TryGetService(out IComponentChangeService? changeService)) 405if (site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\ActiveX\AxHost.cs (4)
868IComponentChangeService? changeService = (IComponentChangeService?)GetService(typeof(IComponentChangeService)); 2988if (Site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
508if (_host.Site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Control.cs (1)
12615IComponentChangeService? changeService = null;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6128if (site?.TryGetService(out IComponentChangeService? service) == true)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
256if (_designerHost.TryGetService(out IComponentChangeService? changeService)) 278if (value.TryGetService(out IComponentChangeService? changeService)) 3158&& site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
169protected virtual IComponentChangeService? ComponentChangeService => _parent?.ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
222IComponentChangeService? changeService = ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
23private IComponentChangeService? _changeService; 103protected override IComponentChangeService? ComponentChangeService 104=> _changeService ?? this.GetService<IComponentChangeService>();
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
798if (Site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
284if (site.TryGetService(out IComponentChangeService? service)) 318if (site.TryGetService(out IComponentChangeService? service))
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
357if (Host.Site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
78if (_component.Site.TryGetService(out IComponentChangeService? changeService))
System.Windows.Forms.Design (211)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
956IComponentChangeService? changeService = _editor.Context?.GetService<IComponentChangeService>();
System\ComponentModel\Design\CollectionEditor.cs (1)
237IComponentChangeService? changeService = null;
System\ComponentModel\Design\ComponentDesigner.cs (6)
390if (TryGetService(out IComponentChangeService? cs)) 456if (TryGetService(out IComponentChangeService? cs)) 721/// Notifies the <see cref="IComponentChangeService"/> that this component has been changed. 726=> GetService<IComponentChangeService>()?.OnComponentChanged(Component, member, oldValue, newValue); 729/// Notifies the <see cref="IComponentChangeService"/> that this component is 734=> GetService<IComponentChangeService>()?.OnComponentChanging(Component, member);
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (2)
19private IComponentChangeService? ComponentChangeService => _serviceProvider.GetService<IComponentChangeService>();
System\ComponentModel\Design\DesignerActionService.cs (2)
39if (serviceProvider.TryGetService(out IComponentChangeService? componentChangeService)) 136if (_serviceProvider.TryGetService(out IComponentChangeService? componentChangeService))
System\ComponentModel\Design\DesignerActionUI.cs (2)
88if (serviceProvider.TryGetService(out IComponentChangeService? cs)) 123if (_serviceProvider.TryGetService(out IComponentChangeService? cs))
System\ComponentModel\Design\DesignerEventService.cs (2)
238IComponentChangeService? cs = provider.GetService<IComponentChangeService>();
System\ComponentModel\Design\DesignerHost.cs (10)
27private static readonly Type[] s_defaultServices = [typeof(IDesignerHost), typeof(IContainer), typeof(IComponentChangeService), typeof(IDesignerLoaderHost2)]; 806event ComponentEventHandler IComponentChangeService.ComponentAdded 812event ComponentEventHandler IComponentChangeService.ComponentAdding 818event ComponentChangedEventHandler IComponentChangeService.ComponentChanged 824event ComponentChangingEventHandler IComponentChangeService.ComponentChanging 830event ComponentEventHandler IComponentChangeService.ComponentRemoved 836event ComponentEventHandler IComponentChangeService.ComponentRemoving 842event ComponentRenameEventHandler IComponentChangeService.ComponentRename 848void IComponentChangeService.OnComponentChanged(object component, MemberDescriptor? member, object? oldValue, object? newValue) 858void IComponentChangeService.OnComponentChanging(object component, MemberDescriptor? member)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
223if (site.TryGetService(out IComponentChangeService? changeService))
System\ComponentModel\Design\InheritanceService.cs (2)
70IComponentChangeService? cs = null; 76cs = site.GetService<IComponentChangeService>();
System\ComponentModel\Design\ReferenceService.cs (3)
69IComponentChangeService? cs = _provider.GetService<IComponentChangeService>(); 194if (_provider.TryGetService(out IComponentChangeService? cs))
System\ComponentModel\Design\SelectionService.cs (4)
64if (GetService(typeof(IComponentChangeService)) is IComponentChangeService cs) 283if (GetService(typeof(IComponentChangeService)) is IComponentChangeService cs)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (3)
251if (TryGetService(out IComponentChangeService? cs)) 419if (!TryGetService(out IComponentChangeService? componentChangeService)) 674if (TryGetService(out IComponentChangeService? componentChangeService))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
91if (TryGetService(out IComponentChangeService? componentChangeService)) 694if (TryGetService(out IComponentChangeService? componentChangeService)) 773if (!TryGetService(out IComponentChangeService? cs))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (1)
52if (site.TryGetService(out IComponentChangeService? changeService)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
863var changeService = manager.GetService<IComponentChangeService>();
System\ComponentModel\Design\Serialization\ComponentCache.cs (3)
19if (manager.GetService(typeof(IComponentChangeService)) is IComponentChangeService cs) 105if (_serManager.TryGetService(out IComponentChangeService? cs))
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
151IComponentChangeService? componentChangeService = _serviceProvider?.GetService<IComponentChangeService>();
System\ComponentModel\Design\UndoEngine.cs (2)
45ComponentChangeService = GetRequiredService<IComponentChangeService>(); 205internal IComponentChangeService ComponentChangeService { get; }
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
343IComponentChangeService componentChangeSvcSource = (IComponentChangeService)_serviceProviderSource.GetService(typeof(IComponentChangeService)); 344IComponentChangeService componentChangeSvcTarget = (IComponentChangeService)_serviceProviderTarget.GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
71if (_serviceProvider.TryGetService(out IComponentChangeService? cs)) 189if (_serviceProvider.TryGetService(out IComponentChangeService? cs))
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
56IComponentChangeService cs = _serviceProvider.GetService(typeof(IComponentChangeService)) as IComponentChangeService; 105IComponentChangeService cs = _serviceProvider.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
141IComponentChangeService changeService = _serviceProvider.GetRequiredService<IComponentChangeService>();
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (3)
28if (TryGetService(out IComponentChangeService? componentChangeService)) 39if (TryGetService(out IComponentChangeService? componentChangeService)) 76if (TryGetService(out IComponentChangeService? componentChangeService))
System\Windows\Forms\Design\BindingSourceDesigner.cs (4)
22if (TryGetService(out IComponentChangeService? componentChangeService)) 33if (TryGetService(out IComponentChangeService? componentChangeService)) 59IComponentChangeService? componentChangeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
63var changeService = _provider.GetService<IComponentChangeService>();
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
20private IComponentChangeService _componentChangeService; 55private IComponentChangeService ChangeService 59_componentChangeService ??= this.GetService<IComponentChangeService>();
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (2)
58IComponentChangeService? changeService = Context.GetService<IComponentChangeService>();
System\Windows\Forms\Design\CommandSet.cs (6)
291if (TryGetService(out IComponentChangeService? changeService)) 634if (TryGetService(out IComponentChangeService? changeSvc)) 1468IComponentChangeService? changeService = GetService<IComponentChangeService>(); 1593IComponentChangeService? changeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ComponentTray.cs (10)
115IComponentChangeService componentChangeService = (IComponentChangeService)GetService(typeof(IComponentChangeService)); 870IComponentChangeService componentChangeService = (IComponentChangeService)GetService(typeof(IComponentChangeService)); 1927IComponentChangeService cs = (IComponentChangeService)tray.GetService(typeof(IComponentChangeService)); 2029if (site.TryGetService(out IComponentChangeService cs))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
983IComponentChangeService ccs = (IComponentChangeService)GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\ControlDesigner.cs (4)
465if (TryGetService(out IComponentChangeService? componentChangeService)) 554if (TryGetService(out IComponentChangeService? componentChangeService)) 1047if (TryGetService(out IComponentChangeService? componentChangeService)) 1057if (TryGetService(out IComponentChangeService? componentChangeService))
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
520if (!_liveDataGridView.Site.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
31private IComponentChangeService? _compChangeService; 182IComponentChangeService? changeService = _liveDataGridView!.Site?.GetService<IComponentChangeService>(); 443private void HookComponentChangedEventHandler(IComponentChangeService componentChangeService) 1090IComponentChangeService? newComponentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1167private void UnhookComponentChangedEventHandler(IComponentChangeService componentChangeService)
System\Windows\Forms\Design\DataGridViewDesigner.cs (20)
42IComponentChangeService? componentChangeService = dataGridView.Site?.GetService<IComponentChangeService>(); 97if (dataGridView.Site.TryGetService(out IComponentChangeService? ccs)) 119if (component.Site.TryGetService(out IComponentChangeService? componentChangeService)) 304IComponentChangeService? componentChangeService = GetService<IComponentChangeService>(); 452IComponentChangeService? changeService = site?.GetService<IComponentChangeService>(); 578IComponentChangeService? changeService = site?.GetService<IComponentChangeService>(); 844IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 936IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 979IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1022IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>(); 1065IComponentChangeService? changeService = dataGridView.Site?.GetService<IComponentChangeService>();
System\Windows\Forms\Design\DesignerFrame.cs (1)
140if (_designerSite.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Design\DocumentDesigner.cs (6)
373IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService)); 718IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\EditorServiceContext.cs (3)
18private IComponentChangeService? _componentChangeService; 73private IComponentChangeService ChangeService => _componentChangeService ??= this.GetRequiredService<IComponentChangeService>();
System\Windows\Forms\Design\FormatStringEditor.cs (1)
43if (provider.TryGetService(out IComponentChangeService? changeService))
System\Windows\Forms\Design\FormDocumentDesigner.cs (8)
235IComponentChangeService changeService = GetService<IComponentChangeService>(); 299IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService)); 349IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
86if (TryGetService(out IComponentChangeService? componentChangeService)) 111if (TryGetService(out IComponentChangeService? componentChangeService))
System\Windows\Forms\Design\ListViewDesigner.cs (1)
143GetService<IComponentChangeService>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
30private IComponentChangeService _changeService; 1212_changeService = (IComponentChangeService)host.GetService(typeof(IComponentChangeService)); 2135var changeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
509if (TryGetService(out IComponentChangeService? cs))
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
97if (TryGetService(out IComponentChangeService? cs)) 113if (TryGetService(out IComponentChangeService? cs))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
22private readonly IComponentChangeService _changeService; 34_changeService = (IComponentChangeService)_provider.GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\StyleEditorForm.cs (2)
21private readonly IComponentChangeService _componentChangeService; 106_componentChangeService = host.GetService<IComponentChangeService>();
System\Windows\Forms\Design\TabControlDesigner.cs (6)
152IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService)); 223IComponentChangeService cs = (IComponentChangeService)GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
39private IComponentChangeService _compSvc; 1163_compSvc = host.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
System\Windows\Forms\Design\TabOrder.cs (6)
128IComponentChangeService? cs = (IComponentChangeService?)host.GetService(typeof(IComponentChangeService)); 169IComponentChangeService? cs = (IComponentChangeService?)_host.GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
77private IComponentChangeService _componentChangeSvc; 154if (Context.GetService<IComponentChangeService>() is IComponentChangeService changeService)
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
46private IComponentChangeService _componentChangeService; 457private IComponentChangeService ComponentChangeService => _componentChangeService ??= GetRequiredService<IComponentChangeService>(); 1856if (TryGetService(out IComponentChangeService changeService))
System\Windows\Forms\Design\ToolStripInSituService.cs (3)
19private IComponentChangeService _componentChangeService; 35_componentChangeService = (IComponentChangeService)_designerHost.GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
679if (currentDropItem.Site.TryGetService(out IComponentChangeService changeService))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
470if (TryGetService(out IComponentChangeService cs)) 532if (TryGetService(out IComponentChangeService changeService) && parent.Site is not null) 554if (TryGetService(out IComponentChangeService changeService) && parent.Site is not null) 658if (TryGetService(out IComponentChangeService cs)) 781if (TryGetService(out IComponentChangeService changeService))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
17private IComponentChangeService _componentChangeService; 66_componentChangeService = (IComponentChangeService)_designerHost.GetService(typeof(IComponentChangeService));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (7)
40private IComponentChangeService _componentChangeService; 353private IComponentChangeService ComponentChangeService => _componentChangeService ??= GetService<IComponentChangeService>(); 1671IComponentChangeService changeService = GetService<IComponentChangeService>(); 2716var changeService = primaryItem.Site.GetService<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
21private IComponentChangeService? _componentChangeService; 335_componentChangeService = _designerHost.GetService<IComponentChangeService>();
System.Windows.Forms.Design.Tests (157)
Mocks\MockSite.cs (1)
39.Setup(s => s.GetService(typeof(IComponentChangeService)))
SplitContainerDesignerTests.cs (2)
24Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 26.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\CollectionEditorTests.cs (23)
151.Setup(c => c.GetService(typeof(IComponentChangeService))) 192.Setup(c => c.GetService(typeof(IComponentChangeService))) 209.Setup(c => c.GetService(typeof(IComponentChangeService))) 239.Setup(c => c.GetService(typeof(IComponentChangeService))) 260.Setup(c => c.GetService(typeof(IComponentChangeService))) 296.Setup(c => c.GetService(typeof(IComponentChangeService))) 313.Setup(c => c.GetService(typeof(IComponentChangeService))) 400.Setup(c => c.GetService(typeof(IComponentChangeService))) 439.Setup(c => c.GetService(typeof(IComponentChangeService))) 453.Setup(c => c.GetService(typeof(IComponentChangeService))) 514.Setup(c => c.GetService(typeof(IComponentChangeService))) 544.Setup(c => c.GetService(typeof(IComponentChangeService))) 555.Setup(c => c.GetService(typeof(IComponentChangeService))) 590.Setup(c => c.GetService(typeof(IComponentChangeService))) 601.Setup(c => c.GetService(typeof(IComponentChangeService))) 637.Setup(c => c.GetService(typeof(IComponentChangeService))) 648.Setup(c => c.GetService(typeof(IComponentChangeService))) 668Mock<IComponentChangeService> mockChangeService = new(MockBehavior.Strict); 680.Setup(c => c.GetService(typeof(IComponentChangeService))) 691.Setup(c => c.GetService(typeof(IComponentChangeService))) 802.Setup(c => c.GetService(typeof(IComponentChangeService))) 912.Setup(c => c.GetService(typeof(IComponentChangeService))) 950.Setup(c => c.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\CollectionFormTests.cs (15)
128.Setup(c => c.GetService(typeof(IComponentChangeService))) 184.Setup(c => c.GetService(typeof(IComponentChangeService))) 243.Setup(c => c.GetService(typeof(IComponentChangeService))) 302.Setup(c => c.GetService(typeof(IComponentChangeService))) 361.Setup(c => c.GetService(typeof(IComponentChangeService))) 415.Setup(c => c.GetService(typeof(IComponentChangeService))) 521.Setup(c => c.GetService(typeof(IComponentChangeService))) 563.Setup(c => c.GetService(typeof(IComponentChangeService))) 580.Setup(c => c.GetService(typeof(IComponentChangeService))) 611.Setup(c => c.GetService(typeof(IComponentChangeService))) 632.Setup(c => c.GetService(typeof(IComponentChangeService))) 669.Setup(c => c.GetService(typeof(IComponentChangeService))) 686.Setup(c => c.GetService(typeof(IComponentChangeService))) 742.Setup(c => c.GetService(typeof(IComponentChangeService))) 781.Setup(c => c.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\ComponentDesignerTests.cs (39)
212.Setup(s => s.GetService(typeof(IComponentChangeService))) 504.Setup(s => s.GetService(typeof(IComponentChangeService))) 567yield return new object[] { new Mock<IComponentChangeService>(MockBehavior.Strict).Object }; 577.Setup(s => s.GetService(typeof(IComponentChangeService))) 677yield return new object[] { new Mock<IComponentChangeService>(MockBehavior.Strict), disposing }; 808.Setup(s => s.GetService(typeof(IComponentChangeService))) 923.Setup(s => s.GetService(typeof(IComponentChangeService))) 1032.Setup(s => s.GetService(typeof(IComponentChangeService))) 1140.Setup(s => s.GetService(typeof(IComponentChangeService))) 1233.Setup(s => s.GetService(typeof(IComponentChangeService))) 1324.Setup(s => s.GetService(typeof(IComponentChangeService))) 1418.Setup(s => s.GetService(typeof(IComponentChangeService))) 1525.Setup(s => s.GetService(typeof(IComponentChangeService))) 1623.Setup(s => s.GetService(typeof(IComponentChangeService))) 1702.Setup(s => s.GetService(typeof(IComponentChangeService))) 1764.Setup(s => s.GetService(typeof(IComponentChangeService))) 1820.Setup(s => s.GetService(typeof(IComponentChangeService))) 1896.Setup(s => s.GetService(typeof(IComponentChangeService))) 1966.Setup(s => s.GetService(typeof(IComponentChangeService))) 2034.Setup(s => s.GetService(typeof(IComponentChangeService))) 2060mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2095.Setup(s => s.GetService(typeof(IComponentChangeService))) 2123mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2146.Setup(s => s.GetService(typeof(IComponentChangeService))) 2180mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2206.Setup(s => s.GetService(typeof(IComponentChangeService))) 2238mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2495Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2503mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2505mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2528mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2530mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2553Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2561mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2563mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2586mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2588mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2618.Setup(s => s.GetService(typeof(IComponentChangeService))) 2656.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\DesignerActionServiceTests.cs (11)
22Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 30.Setup(p => p.GetService(typeof(IComponentChangeService))) 39mockServiceProvider.Verify(p => p.GetService(typeof(IComponentChangeService)), Times.Once()); 259Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 266.Setup(p => p.GetService(typeof(IComponentChangeService))) 290Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 297.Setup(p => p.GetService(typeof(IComponentChangeService))) 320.Setup(p => p.GetService(typeof(IComponentChangeService))) 321.Returns((IComponentChangeService)null); 324.Returns((IComponentChangeService)null); 332.Setup(p => p.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\DesignerHostTests.cs (16)
1374IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 1603IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2785IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2851IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2935IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2968IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3005IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3040IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host);
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
274yield return new object[] { typeof(IComponentChangeService) };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (3)
275Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 316.Setup(p => p.GetService(typeof(IComponentChangeService))) 341mockServiceProvider.Verify(p => p.GetService(typeof(IComponentChangeService)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (6)
516IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 917IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 985IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host);
System\ComponentModel\Design\UndoUnitTests.cs (2)
21Mock<IComponentChangeService> mockComponentChangeService = new(); 26.Setup(p => p.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (3)
28Mock<IComponentChangeService> componentChangeServiceMock = new(); 30serviceProviderMock.Setup(sp => sp.GetService(typeof(IComponentChangeService))).Returns(componentChangeServiceMock.Object); 34siteMock.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(componentChangeServiceMock.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
14private readonly Mock<IComponentChangeService> _mockComponentChangeService; 38mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object); 41_mockDesignerHost.Setup(d => d.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (2)
53Mock<IComponentChangeService> mockChangeService = new(); 55site.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
16private readonly Mock<IComponentChangeService> _mockChangeService; 29_provider.Setup(p => p.GetService(typeof(IComponentChangeService))).Returns(_mockChangeService.Object);
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (2)
18private readonly Mock<IComponentChangeService> _changedServiceMock; 34_selectionUIHandlerMock.Protected().Setup<object>("GetService", typeof(IComponentChangeService)).Returns(_changedServiceMock.Object);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
27Mock<IComponentChangeService> mockChangeService = new(); 28mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(mockChangeService.Object); 29mockDesignerHost.Setup(dh => dh.GetService(typeof(IComponentChangeService))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (2)
117Mock<IComponentChangeService> compChangeServiceMock = new(); 119hostMock.Setup(h => h.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
14private readonly Mock<IComponentChangeService> _mockComponentChangeService; 36mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object); 40_mockDesignerHost.Setup(d => d.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (7)
36Mock<IComponentChangeService> mockComponentChangeService = new(); 37_mockDesignerHost.Setup(dh => dh.GetService(typeof(IComponentChangeService))).Returns(mockComponentChangeService.Object); 57_mockDesignerHost.Setup(dh => dh.GetService(typeof(IComponentChangeService))).Returns(Mock.Of<IComponentChangeService>); 111Mock<IComponentChangeService> mockComponentChangeService = new(); 113mockDesignerHost.Setup(dh => dh.GetService(typeof(IComponentChangeService))).Returns(mockComponentChangeService.Object); 117mockDesignerHost.Verify(dh => dh.GetService(typeof(IComponentChangeService)), Times.Exactly(2));
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
22Mock<IComponentChangeService> componentChangeService = new(MockBehavior.Strict); 24.Setup(s => s.GetService(typeof(IComponentChangeService)))
TestControlDesigner.Mocks.cs (3)
24Mock<IComponentChangeService> mockComponentChangeService = new(); 26.Setup(s => s.GetService(typeof(IComponentChangeService))) 67.Setup(s => s.GetService(typeof(IComponentChangeService)))
ToolStripDesignerTests.cs (4)
22Mock<IComponentChangeService> mockIComponentChangeService = new(MockBehavior.Strict); 28.Setup(s => s.GetService(typeof(IComponentChangeService))) 37Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 38mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(mockComponentChangeService.Object);
ToolStripDropDownDesignerTest.cs (2)
28Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 30.Setup(s => s.GetService(typeof(IComponentChangeService)))
System.Windows.Forms.Primitives (2)
System\ComponentModel\Design\ComponentChangeServiceExtensions.cs (2)
9this IComponentChangeService changeService, 19this IComponentChangeService changeService,
System.Windows.Forms.Tests (32)
System\Windows\Forms\AxHostTests.cs (17)
261.Setup(s => s.GetService(typeof(IComponentChangeService))) 607.Setup(s => s.GetService(typeof(IComponentChangeService))) 640.Setup(s => s.GetService(typeof(IComponentChangeService))) 671.Setup(s => s.GetService(typeof(IComponentChangeService))) 702.Setup(s => s.GetService(typeof(IComponentChangeService))) 735.Setup(s => s.GetService(typeof(IComponentChangeService))) 766.Setup(s => s.GetService(typeof(IComponentChangeService))) 801.Setup(s => s.GetService(typeof(IComponentChangeService))) 849.Setup(s => s.GetService(typeof(IComponentChangeService))) 1780.Setup(s => s.GetService(typeof(IComponentChangeService))) 1833.Setup(s => s.GetService(typeof(IComponentChangeService))) 1890.Setup(s => s.GetService(typeof(IComponentChangeService))) 1945.Setup(s => s.GetService(typeof(IComponentChangeService))) 2002.Setup(s => s.GetService(typeof(IComponentChangeService))) 2064.Setup(s => s.GetService(typeof(IComponentChangeService))) 2129.Setup(s => s.GetService(typeof(IComponentChangeService))) 2203.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\ButtonBaseTests.cs (3)
555.Setup(s => s.GetService(typeof(IComponentChangeService))) 601.Setup(s => s.GetService(typeof(IComponentChangeService))) 647.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\PropertyGridTests.cs (9)
2715Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2722.Setup(h => h.GetService(typeof(IComponentChangeService))) 2822.Setup(h => h.GetService(typeof(IComponentChangeService))) 2839Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2846.Setup(h => h.GetService(typeof(IComponentChangeService))) 2942.Setup(h => h.GetService(typeof(IComponentChangeService))) 2976.Setup(h => h.GetService(typeof(IComponentChangeService))) 4271private readonly IComponentChangeService _componentChangeService = new ComponentChangeService(); 4278=> serviceType == typeof(IComponentChangeService) ? _componentChangeService : null;
System\Windows\Forms\TabPageTests.cs (3)
697.Setup(s => s.GetService(typeof(IComponentChangeService))) 739.Setup(s => s.GetService(typeof(IComponentChangeService))) 782.Setup(s => s.GetService(typeof(IComponentChangeService)))
System.Windows.Forms.UI.IntegrationTests (2)
DesignBehaviorsTests.cs (2)
66if (designerHost.GetService(typeof(IComponentChangeService)) is IComponentChangeService componentChangeService)