2 implementations of IComponentChangeService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
17
internal sealed partial class DesignerHost : Container, IDesignerLoaderHost2, IDesignerHostTransactionState,
IComponentChangeService
, IReflect
System.Windows.Forms.Tests (1)
System\Windows\Forms\PropertyGridTests.cs (1)
4278
public class ComponentChangeService :
IComponentChangeService
444 references to IComponentChangeService
DesignSurfaceExt (4)
PropertyGridExt.cs (4)
13
private
IComponentChangeService
_componentChangeService;
15
private
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)
163
IComponentChangeService
? changeService = null;
168
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
444
IComponentChangeService
? changeService = null;
449
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
System\ComponentModel\ReflectPropertyDescriptor.cs (12)
579
IComponentChangeService
? changeService = null;
586
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
627
IComponentChangeService
? changeService = null;
633
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
1027
IComponentChangeService
? changeService = null;
1034
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
1091
IComponentChangeService
? changeService = null;
1096
changeService = (
IComponentChangeService
?)site.GetService(typeof(
IComponentChangeService
));
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
141
if (site.TryGetService(out
IComponentChangeService
? changeService))
405
if (site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\ActiveX\AxHost.cs (4)
868
IComponentChangeService
? changeService = (
IComponentChangeService
?)GetService(typeof(
IComponentChangeService
));
2988
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
508
if (_host.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Control.cs (1)
12615
IComponentChangeService
? changeService = null;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6128
if (site?.TryGetService(out
IComponentChangeService
? service) == true)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
256
if (_designerHost.TryGetService(out
IComponentChangeService
? changeService))
278
if (value.TryGetService(out
IComponentChangeService
? changeService))
3158
&& site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
169
protected virtual
IComponentChangeService
? ComponentChangeService => _parent?.ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
222
IComponentChangeService
? changeService = ComponentChangeService;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
23
private
IComponentChangeService
? _changeService;
103
protected override
IComponentChangeService
? ComponentChangeService
104
=> _changeService ?? this.GetService<
IComponentChangeService
>();
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
798
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
284
if (site.TryGetService(out
IComponentChangeService
? service))
318
if (site.TryGetService(out
IComponentChangeService
? service))
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
357
if (Host.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
78
if (_component.Site.TryGetService(out
IComponentChangeService
? changeService))
System.Windows.Forms.Design (208)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
956
IComponentChangeService
? changeService = _editor.Context?.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\CollectionEditor.cs (1)
237
IComponentChangeService
? changeService = null;
System\ComponentModel\Design\ComponentDesigner.cs (6)
390
if (TryGetService(out
IComponentChangeService
? cs))
456
if (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)
19
private
IComponentChangeService
? ComponentChangeService => _serviceProvider.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\DesignerActionService.cs (2)
39
if (serviceProvider.TryGetService(out
IComponentChangeService
? componentChangeService))
136
if (_serviceProvider.TryGetService(out
IComponentChangeService
? componentChangeService))
System\ComponentModel\Design\DesignerActionUI.cs (2)
88
if (serviceProvider.TryGetService(out
IComponentChangeService
? cs))
123
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\DesignerEventService.cs (2)
238
IComponentChangeService
? cs = provider.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\DesignerHost.cs (10)
27
private static readonly Type[] s_defaultServices = [typeof(IDesignerHost), typeof(IContainer), typeof(
IComponentChangeService
), typeof(IDesignerLoaderHost2)];
806
event ComponentEventHandler
IComponentChangeService
.ComponentAdded
812
event ComponentEventHandler
IComponentChangeService
.ComponentAdding
818
event ComponentChangedEventHandler
IComponentChangeService
.ComponentChanged
824
event ComponentChangingEventHandler
IComponentChangeService
.ComponentChanging
830
event ComponentEventHandler
IComponentChangeService
.ComponentRemoved
836
event ComponentEventHandler
IComponentChangeService
.ComponentRemoving
842
event ComponentRenameEventHandler
IComponentChangeService
.ComponentRename
848
void
IComponentChangeService
.OnComponentChanged(object component, MemberDescriptor? member, object? oldValue, object? newValue)
858
void
IComponentChangeService
.OnComponentChanging(object component, MemberDescriptor? member)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
223
if (site.TryGetService(out
IComponentChangeService
? changeService))
System\ComponentModel\Design\InheritanceService.cs (2)
70
IComponentChangeService
? cs = null;
76
cs = site.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\ReferenceService.cs (3)
69
IComponentChangeService
? cs = _provider.GetService<
IComponentChangeService
>();
194
if (_provider.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\SelectionService.cs (4)
64
if (GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
283
if (GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (3)
251
if (TryGetService(out
IComponentChangeService
? cs))
419
if (!TryGetService(out
IComponentChangeService
? componentChangeService))
674
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
91
if (TryGetService(out
IComponentChangeService
? componentChangeService))
694
if (TryGetService(out
IComponentChangeService
? componentChangeService))
773
if (!TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (1)
52
if (site.TryGetService(out
IComponentChangeService
? changeService)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
863
var changeService = manager.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\Serialization\ComponentCache.cs (3)
19
if (manager.GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
cs)
105
if (_serManager.TryGetService(out
IComponentChangeService
? cs))
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
151
IComponentChangeService
? componentChangeService = _serviceProvider?.GetService<
IComponentChangeService
>();
System\ComponentModel\Design\UndoEngine.cs (2)
45
ComponentChangeService = GetRequiredService<
IComponentChangeService
>();
205
internal
IComponentChangeService
ComponentChangeService { get; }
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
343
IComponentChangeService
componentChangeSvcSource = (
IComponentChangeService
)_serviceProviderSource.GetService(typeof(
IComponentChangeService
));
344
IComponentChangeService
componentChangeSvcTarget = (
IComponentChangeService
)_serviceProviderTarget.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
71
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
189
if (_serviceProvider.TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
56
IComponentChangeService
cs = _serviceProvider.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
105
IComponentChangeService
cs = _serviceProvider.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
141
IComponentChangeService
changeService = _serviceProvider.GetRequiredService<
IComponentChangeService
>();
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (3)
28
if (TryGetService(out
IComponentChangeService
? componentChangeService))
39
if (TryGetService(out
IComponentChangeService
? componentChangeService))
76
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\BindingSourceDesigner.cs (4)
22
if (TryGetService(out
IComponentChangeService
? componentChangeService))
33
if (TryGetService(out
IComponentChangeService
? componentChangeService))
59
IComponentChangeService
? componentChangeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
63
var
changeService = _provider.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\CollectionEditVerbManager.cs (3)
20
private
IComponentChangeService
_componentChangeService;
55
private
IComponentChangeService
ChangeService
59
_componentChangeService ??= this.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (2)
58
IComponentChangeService
? changeService = Context.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\CommandSet.cs (6)
291
if (TryGetService(out
IComponentChangeService
? changeService))
634
if (TryGetService(out
IComponentChangeService
? changeSvc))
1468
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
1593
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ComponentTray.cs (10)
115
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
870
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
1927
IComponentChangeService
cs = (
IComponentChangeService
)tray.GetService(typeof(
IComponentChangeService
));
2029
if (site.TryGetService(out
IComponentChangeService
cs))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
983
IComponentChangeService
ccs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ControlDesigner.cs (4)
465
if (TryGetService(out
IComponentChangeService
? componentChangeService))
554
if (TryGetService(out
IComponentChangeService
? componentChangeService))
1047
if (TryGetService(out
IComponentChangeService
? componentChangeService))
1057
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
520
if (!_liveDataGridView.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
31
private
IComponentChangeService
? _compChangeService;
182
IComponentChangeService
? changeService = _liveDataGridView!.Site?.GetService<
IComponentChangeService
>();
443
private void HookComponentChangedEventHandler(
IComponentChangeService
componentChangeService)
1090
IComponentChangeService
? newComponentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1167
private void UnhookComponentChangedEventHandler(
IComponentChangeService
componentChangeService)
System\Windows\Forms\Design\DataGridViewDesigner.cs (20)
42
IComponentChangeService
? componentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
97
if (dataGridView.Site.TryGetService(out
IComponentChangeService
? ccs))
119
if (component.Site.TryGetService(out
IComponentChangeService
? componentChangeService))
304
IComponentChangeService
? componentChangeService = GetService<
IComponentChangeService
>();
452
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
578
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
844
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
936
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
979
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1022
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1065
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\DesignerFrame.cs (1)
140
if (_designerSite.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\DocumentDesigner.cs (6)
373
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
718
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\EditorServiceContext.cs (3)
18
private
IComponentChangeService
? _componentChangeService;
73
private
IComponentChangeService
ChangeService => _componentChangeService ??= this.GetRequiredService<
IComponentChangeService
>();
System\Windows\Forms\Design\FormatStringEditor.cs (1)
43
if (provider.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\FormDocumentDesigner.cs (8)
235
IComponentChangeService
changeService = GetService<
IComponentChangeService
>();
299
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
349
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
86
if (TryGetService(out
IComponentChangeService
? componentChangeService))
111
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\Windows\Forms\Design\ListViewDesigner.cs (1)
145
GetService<
IComponentChangeService
>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
30
private
IComponentChangeService
_changeService;
1212
_changeService = (
IComponentChangeService
)host.GetService(typeof(
IComponentChangeService
));
2135
var
changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
539
if (TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
97
if (TryGetService(out
IComponentChangeService
? cs))
113
if (TryGetService(out
IComponentChangeService
? cs))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (3)
22
private readonly
IComponentChangeService
_changeService;
34
_changeService = (
IComponentChangeService
)_provider.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\StyleEditorForm.cs (2)
21
private readonly
IComponentChangeService
_componentChangeService;
106
_componentChangeService = host.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\TabControlDesigner.cs (6)
152
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
223
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
39
private
IComponentChangeService
_compSvc;
1163
_compSvc = host.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
System\Windows\Forms\Design\TabOrder.cs (6)
128
IComponentChangeService
? cs = (
IComponentChangeService
?)host.GetService(typeof(
IComponentChangeService
));
169
IComponentChangeService
? cs = (
IComponentChangeService
?)_host.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
46
private
IComponentChangeService
_componentChangeService;
457
private
IComponentChangeService
ComponentChangeService => _componentChangeService ??= GetRequiredService<
IComponentChangeService
>();
1856
if (TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripInSituService.cs (3)
19
private
IComponentChangeService
_componentChangeService;
35
_componentChangeService = (
IComponentChangeService
)_designerHost.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
679
if (currentDropItem.Site.TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
470
if (TryGetService(out
IComponentChangeService
cs))
532
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
554
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
658
if (TryGetService(out
IComponentChangeService
cs))
781
if (TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (3)
17
private
IComponentChangeService
_componentChangeService;
66
_componentChangeService = (
IComponentChangeService
)_designerHost.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (7)
40
private
IComponentChangeService
_componentChangeService;
353
private
IComponentChangeService
ComponentChangeService => _componentChangeService ??= GetService<
IComponentChangeService
>();
1671
IComponentChangeService
changeService = GetService<
IComponentChangeService
>();
2716
var
changeService = primaryItem.Site.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
21
private
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)
22
Mock<
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
)))
693
Mock<
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
)))
565
yield return new object[] { new Mock<
IComponentChangeService
>(MockBehavior.Strict).Object };
575
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
675
yield 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
)))
2058
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2093
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2121
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2144
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2178
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2204
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2236
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2493
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2501
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2503
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2526
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2528
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2551
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2559
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2561
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2584
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2586
mockSite.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)
20
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
28
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
37
mockServiceProvider.Verify(p => p.GetService(typeof(
IComponentChangeService
)), Times.Once());
257
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
264
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
288
Mock<
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)
1372
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
1601
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2783
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2849
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2933
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2966
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
3003
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
3038
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
272
yield return new object[] { typeof(
IComponentChangeService
) };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (3)
273
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
314
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
339
mockServiceProvider.Verify(p => p.GetService(typeof(
IComponentChangeService
)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (6)
514
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
915
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
983
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
System\ComponentModel\Design\UndoUnitTests.cs (2)
19
Mock<
IComponentChangeService
> mockComponentChangeService = new();
24
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (3)
30
Mock<
IComponentChangeService
> componentChangeServiceMock = new();
32
serviceProviderMock.Setup(sp => sp.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
36
siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
16
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
40
mockSite.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)
18
private readonly Mock<
IComponentChangeService
> _mockChangeService;
31
_provider.Setup(p => p.GetService(typeof(
IComponentChangeService
))).Returns(_mockChangeService.Object);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
29
Mock<
IComponentChangeService
> mockChangeService = new();
30
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
31
mockDesignerHost.Setup(dh => dh.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
16
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
38
mockSite.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)
24
Mock<
IComponentChangeService
> componentChangeService = new(MockBehavior.Strict);
26
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
TestControlDesigner.Mocks.cs (3)
26
Mock<
IComponentChangeService
> mockComponentChangeService = new();
28
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
69
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
ToolStripDesignerTests.cs (4)
20
Mock<
IComponentChangeService
> mockIComponentChangeService = new(MockBehavior.Strict);
26
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
35
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
36
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockComponentChangeService.Object);
ToolStripDropDownDesignerTest.cs (2)
26
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
28
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
System.Windows.Forms.Primitives (2)
System\ComponentModel\Design\ComponentChangeServiceExtensions.cs (2)
9
this
IComponentChangeService
changeService,
19
this
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)
2713
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2720
.Setup(h => h.GetService(typeof(
IComponentChangeService
)))
2820
.Setup(h => h.GetService(typeof(
IComponentChangeService
)))
2837
Mock<
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
)))
4269
private 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)
66
if (designerHost.GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
componentChangeService)