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)
4278public class ComponentChangeService : IComponentChangeService
444 references to IComponentChangeService
DesignSurfaceExt (4)
PropertyGridExt.cs (4)
13private IComponentChangeService _componentChangeService; 15private IComponentChangeService ComponentChangeService 19_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 (208)
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)
145GetService<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)
539if (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\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 (144)
Mocks\MockSite.cs (1)
37.Setup(s => s.GetService(typeof(IComponentChangeService)))
SplitContainerDesignerTests.cs (2)
22Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 24.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\CollectionEditorTests.cs (23)
169.Setup(c => c.GetService(typeof(IComponentChangeService))) 210.Setup(c => c.GetService(typeof(IComponentChangeService))) 227.Setup(c => c.GetService(typeof(IComponentChangeService))) 257.Setup(c => c.GetService(typeof(IComponentChangeService))) 278.Setup(c => c.GetService(typeof(IComponentChangeService))) 314.Setup(c => c.GetService(typeof(IComponentChangeService))) 331.Setup(c => c.GetService(typeof(IComponentChangeService))) 425.Setup(c => c.GetService(typeof(IComponentChangeService))) 464.Setup(c => c.GetService(typeof(IComponentChangeService))) 478.Setup(c => c.GetService(typeof(IComponentChangeService))) 539.Setup(c => c.GetService(typeof(IComponentChangeService))) 569.Setup(c => c.GetService(typeof(IComponentChangeService))) 580.Setup(c => c.GetService(typeof(IComponentChangeService))) 615.Setup(c => c.GetService(typeof(IComponentChangeService))) 626.Setup(c => c.GetService(typeof(IComponentChangeService))) 662.Setup(c => c.GetService(typeof(IComponentChangeService))) 673.Setup(c => c.GetService(typeof(IComponentChangeService))) 693Mock<IComponentChangeService> mockChangeService = new(MockBehavior.Strict); 705.Setup(c => c.GetService(typeof(IComponentChangeService))) 716.Setup(c => c.GetService(typeof(IComponentChangeService))) 858.Setup(c => c.GetService(typeof(IComponentChangeService))) 969.Setup(c => c.GetService(typeof(IComponentChangeService))) 1007.Setup(c => c.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\CollectionFormTests.cs (15)
126.Setup(c => c.GetService(typeof(IComponentChangeService))) 182.Setup(c => c.GetService(typeof(IComponentChangeService))) 241.Setup(c => c.GetService(typeof(IComponentChangeService))) 300.Setup(c => c.GetService(typeof(IComponentChangeService))) 359.Setup(c => c.GetService(typeof(IComponentChangeService))) 413.Setup(c => c.GetService(typeof(IComponentChangeService))) 519.Setup(c => c.GetService(typeof(IComponentChangeService))) 561.Setup(c => c.GetService(typeof(IComponentChangeService))) 578.Setup(c => c.GetService(typeof(IComponentChangeService))) 609.Setup(c => c.GetService(typeof(IComponentChangeService))) 630.Setup(c => c.GetService(typeof(IComponentChangeService))) 667.Setup(c => c.GetService(typeof(IComponentChangeService))) 684.Setup(c => c.GetService(typeof(IComponentChangeService))) 740.Setup(c => c.GetService(typeof(IComponentChangeService))) 779.Setup(c => c.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\ComponentDesignerTests.cs (39)
210.Setup(s => s.GetService(typeof(IComponentChangeService))) 502.Setup(s => s.GetService(typeof(IComponentChangeService))) 565yield return new object[] { new Mock<IComponentChangeService>(MockBehavior.Strict).Object }; 575.Setup(s => s.GetService(typeof(IComponentChangeService))) 675yield return new object[] { new Mock<IComponentChangeService>(MockBehavior.Strict), disposing }; 806.Setup(s => s.GetService(typeof(IComponentChangeService))) 921.Setup(s => s.GetService(typeof(IComponentChangeService))) 1030.Setup(s => s.GetService(typeof(IComponentChangeService))) 1138.Setup(s => s.GetService(typeof(IComponentChangeService))) 1231.Setup(s => s.GetService(typeof(IComponentChangeService))) 1322.Setup(s => s.GetService(typeof(IComponentChangeService))) 1416.Setup(s => s.GetService(typeof(IComponentChangeService))) 1523.Setup(s => s.GetService(typeof(IComponentChangeService))) 1621.Setup(s => s.GetService(typeof(IComponentChangeService))) 1700.Setup(s => s.GetService(typeof(IComponentChangeService))) 1762.Setup(s => s.GetService(typeof(IComponentChangeService))) 1818.Setup(s => s.GetService(typeof(IComponentChangeService))) 1894.Setup(s => s.GetService(typeof(IComponentChangeService))) 1964.Setup(s => s.GetService(typeof(IComponentChangeService))) 2032.Setup(s => s.GetService(typeof(IComponentChangeService))) 2058mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2093.Setup(s => s.GetService(typeof(IComponentChangeService))) 2121mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2144.Setup(s => s.GetService(typeof(IComponentChangeService))) 2178mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2204.Setup(s => s.GetService(typeof(IComponentChangeService))) 2236mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2493Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2501mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2503mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2526mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2528mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2551Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2559mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2561mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2584mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Once()); 2586mockSite.Verify(s => s.GetService(typeof(IComponentChangeService)), Times.Exactly(2)); 2616.Setup(s => s.GetService(typeof(IComponentChangeService))) 2654.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\DesignerActionServiceTests.cs (11)
20Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 28.Setup(p => p.GetService(typeof(IComponentChangeService))) 37mockServiceProvider.Verify(p => p.GetService(typeof(IComponentChangeService)), Times.Once()); 257Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 264.Setup(p => p.GetService(typeof(IComponentChangeService))) 288Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 295.Setup(p => p.GetService(typeof(IComponentChangeService))) 318.Setup(p => p.GetService(typeof(IComponentChangeService))) 319.Returns((IComponentChangeService)null); 322.Returns((IComponentChangeService)null); 330.Setup(p => p.GetService(typeof(IComponentChangeService)))
System\ComponentModel\Design\DesignerHostTests.cs (16)
1372IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 1601IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2783IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2849IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2933IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 2966IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3003IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 3038IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host);
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
272yield return new object[] { typeof(IComponentChangeService) };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (3)
273Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 314.Setup(p => p.GetService(typeof(IComponentChangeService))) 339mockServiceProvider.Verify(p => p.GetService(typeof(IComponentChangeService)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (6)
514IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 915IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host); 983IComponentChangeService changeService = Assert.IsAssignableFrom<IComponentChangeService>(host);
System\ComponentModel\Design\UndoUnitTests.cs (2)
19Mock<IComponentChangeService> mockComponentChangeService = new(); 24.Setup(p => p.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (3)
30Mock<IComponentChangeService> componentChangeServiceMock = new(); 32serviceProviderMock.Setup(sp => sp.GetService(typeof(IComponentChangeService))).Returns(componentChangeServiceMock.Object); 36siteMock.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(componentChangeServiceMock.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
16private readonly Mock<IComponentChangeService> _mockComponentChangeService; 40mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object); 43_mockDesignerHost.Setup(d => d.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
18private readonly Mock<IComponentChangeService> _mockChangeService; 31_provider.Setup(p => p.GetService(typeof(IComponentChangeService))).Returns(_mockChangeService.Object);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
29Mock<IComponentChangeService> mockChangeService = new(); 30mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(mockChangeService.Object); 31mockDesignerHost.Setup(dh => dh.GetService(typeof(IComponentChangeService))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
16private readonly Mock<IComponentChangeService> _mockComponentChangeService; 38mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object); 42_mockDesignerHost.Setup(d => d.GetService(typeof(IComponentChangeService))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
24Mock<IComponentChangeService> componentChangeService = new(MockBehavior.Strict); 26.Setup(s => s.GetService(typeof(IComponentChangeService)))
TestControlDesigner.Mocks.cs (3)
26Mock<IComponentChangeService> mockComponentChangeService = new(); 28.Setup(s => s.GetService(typeof(IComponentChangeService))) 69.Setup(s => s.GetService(typeof(IComponentChangeService)))
ToolStripDesignerTests.cs (4)
20Mock<IComponentChangeService> mockIComponentChangeService = new(MockBehavior.Strict); 26.Setup(s => s.GetService(typeof(IComponentChangeService))) 35Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 36mockSite.Setup(s => s.GetService(typeof(IComponentChangeService))).Returns(mockComponentChangeService.Object);
ToolStripDropDownDesignerTest.cs (2)
26Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 28.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)
259.Setup(s => s.GetService(typeof(IComponentChangeService))) 605.Setup(s => s.GetService(typeof(IComponentChangeService))) 638.Setup(s => s.GetService(typeof(IComponentChangeService))) 669.Setup(s => s.GetService(typeof(IComponentChangeService))) 700.Setup(s => s.GetService(typeof(IComponentChangeService))) 733.Setup(s => s.GetService(typeof(IComponentChangeService))) 764.Setup(s => s.GetService(typeof(IComponentChangeService))) 799.Setup(s => s.GetService(typeof(IComponentChangeService))) 847.Setup(s => s.GetService(typeof(IComponentChangeService))) 1778.Setup(s => s.GetService(typeof(IComponentChangeService))) 1831.Setup(s => s.GetService(typeof(IComponentChangeService))) 1888.Setup(s => s.GetService(typeof(IComponentChangeService))) 1943.Setup(s => s.GetService(typeof(IComponentChangeService))) 2000.Setup(s => s.GetService(typeof(IComponentChangeService))) 2062.Setup(s => s.GetService(typeof(IComponentChangeService))) 2127.Setup(s => s.GetService(typeof(IComponentChangeService))) 2201.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\ButtonBaseTests.cs (3)
553.Setup(s => s.GetService(typeof(IComponentChangeService))) 599.Setup(s => s.GetService(typeof(IComponentChangeService))) 645.Setup(s => s.GetService(typeof(IComponentChangeService)))
System\Windows\Forms\PropertyGridTests.cs (9)
2713Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2720.Setup(h => h.GetService(typeof(IComponentChangeService))) 2820.Setup(h => h.GetService(typeof(IComponentChangeService))) 2837Mock<IComponentChangeService> mockComponentChangeService = new(MockBehavior.Strict); 2844.Setup(h => h.GetService(typeof(IComponentChangeService))) 2940.Setup(h => h.GetService(typeof(IComponentChangeService))) 2974.Setup(h => h.GetService(typeof(IComponentChangeService))) 4269private readonly IComponentChangeService _componentChangeService = new ComponentChangeService(); 4276=> serviceType == typeof(IComponentChangeService) ? _componentChangeService : null;
System\Windows\Forms\TabPageTests.cs (3)
695.Setup(s => s.GetService(typeof(IComponentChangeService))) 737.Setup(s => s.GetService(typeof(IComponentChangeService))) 780.Setup(s => s.GetService(typeof(IComponentChangeService)))
System.Windows.Forms.UI.IntegrationTests (2)
DesignBehaviorsTests.cs (2)
66if (designerHost.GetService(typeof(IComponentChangeService)) is IComponentChangeService componentChangeService)