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)
4447
public class ComponentChangeService :
IComponentChangeService
490 references to IComponentChangeService
DemoConsole (4)
PropertyGridExtended.cs (4)
10
private
IComponentChangeService
_componentChangeService;
12
private
IComponentChangeService
ComponentChangeService
16
_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)
865
IComponentChangeService
? changeService = (
IComponentChangeService
?)GetService(typeof(
IComponentChangeService
));
2985
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
511
if (_host.Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Control.cs (1)
12720
IComponentChangeService
? changeService = null;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6191
if (site?.TryGetService(out
IComponentChangeService
? service) == true)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
258
if (_designerHost.TryGetService(out
IComponentChangeService
? changeService))
280
if (value.TryGetService(out
IComponentChangeService
? changeService))
3150
&& site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
166
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)
792
if (Site.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
281
if (site.TryGetService(out
IComponentChangeService
? service))
315
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 (211)
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)];
796
event ComponentEventHandler
IComponentChangeService
.ComponentAdded
802
event ComponentEventHandler
IComponentChangeService
.ComponentAdding
808
event ComponentChangedEventHandler
IComponentChangeService
.ComponentChanged
814
event ComponentChangingEventHandler
IComponentChangeService
.ComponentChanging
820
event ComponentEventHandler
IComponentChangeService
.ComponentRemoved
826
event ComponentEventHandler
IComponentChangeService
.ComponentRemoving
832
event ComponentRenameEventHandler
IComponentChangeService
.ComponentRename
838
void
IComponentChangeService
.OnComponentChanged(object component, MemberDescriptor? member, object? oldValue, object? newValue)
848
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))
671
if (TryGetService(out
IComponentChangeService
? componentChangeService))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
91
if (TryGetService(out
IComponentChangeService
? componentChangeService))
688
if (TryGetService(out
IComponentChangeService
? componentChangeService))
767
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 (2)
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)
148
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)
288
if (TryGetService(out
IComponentChangeService
? changeService))
628
if (TryGetService(out
IComponentChangeService
? changeSvc))
1462
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
1587
IComponentChangeService
? changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ComponentTray.cs (10)
115
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
864
IComponentChangeService
componentChangeService = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
1912
IComponentChangeService
cs = (
IComponentChangeService
)tray.GetService(typeof(
IComponentChangeService
));
2011
if (site.TryGetService(out
IComponentChangeService
cs))
System\Windows\Forms\Design\ControlCommandSet.cs (3)
977
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))
1062
if (TryGetService(out
IComponentChangeService
? componentChangeService))
1072
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)
1087
IComponentChangeService
? newComponentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1164
private void UnhookComponentChangedEventHandler(
IComponentChangeService
componentChangeService)
System\Windows\Forms\Design\DataGridViewDesigner.cs (18)
41
IComponentChangeService
? componentChangeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
96
if (dataGridView.Site.TryGetService(out
IComponentChangeService
? ccs))
115
if (component.Site.TryGetService(out
IComponentChangeService
? componentChangeService))
294
IComponentChangeService
? componentChangeService = GetService<
IComponentChangeService
>();
442
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
568
IComponentChangeService
? changeService = site?.GetService<
IComponentChangeService
>();
871
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
914
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
957
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
1000
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (2)
49
IComponentChangeService
? changeService = dataGridView.Site?.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\DesignerFrame.cs (1)
137
if (_designerSite.TryGetService(out
IComponentChangeService
? changeService))
System\Windows\Forms\Design\DocumentDesigner.cs (6)
361
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
676
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)
143
GetService<
IComponentChangeService
>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
30
private
IComponentChangeService
_changeService;
1212
_changeService = (
IComponentChangeService
)host.GetService(typeof(
IComponentChangeService
));
2129
var
changeService = GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
509
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;
33
_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)
144
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
209
IComponentChangeService
cs = (
IComponentChangeService
)GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
39
private
IComponentChangeService
_compSvc;
1157
_compSvc = host.GetService(typeof(
IComponentChangeService
)) as
IComponentChangeService
;
System\Windows\Forms\Design\TabOrder.cs (6)
128
IComponentChangeService
? cs = (
IComponentChangeService
?)host.GetService(typeof(
IComponentChangeService
));
166
IComponentChangeService
? cs = (
IComponentChangeService
?)_host.GetService(typeof(
IComponentChangeService
));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
77
private
IComponentChangeService
_componentChangeSvc;
154
if (Context.GetService<
IComponentChangeService
>() is
IComponentChangeService
changeService)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
46
private
IComponentChangeService
_componentChangeService;
1398
_componentChangeService = _host.GetService<
IComponentChangeService
>();
1878
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)
676
if (currentDropItem.Site.TryGetService(out
IComponentChangeService
changeService))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
455
if (TryGetService(out
IComponentChangeService
cs))
514
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
536
if (TryGetService(out
IComponentChangeService
changeService) && parent.Site is not null)
637
if (TryGetService(out
IComponentChangeService
cs))
760
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
>();
1638
IComponentChangeService
changeService = GetService<
IComponentChangeService
>();
2665
var
changeService = primaryItem.Site.GetService<
IComponentChangeService
>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
21
private
IComponentChangeService
? _componentChangeService;
332
_componentChangeService = _designerHost.GetService<
IComponentChangeService
>();
System.Windows.Forms.Design.Tests (187)
Mocks\MockSite.cs (1)
39
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
SplitContainerDesignerTests.cs (2)
24
Mock<
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
)))
668
Mock<
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
)))
567
yield return new object[] { new Mock<
IComponentChangeService
>(MockBehavior.Strict).Object };
577
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
677
yield 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
)))
2060
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2095
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2123
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2146
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2180
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2206
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
2238
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2495
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2503
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2505
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2528
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2530
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2553
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2561
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2563
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
2586
mockSite.Verify(s => s.GetService(typeof(
IComponentChangeService
)), Times.Once());
2588
mockSite.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)
22
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
30
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
39
mockServiceProvider.Verify(p => p.GetService(typeof(
IComponentChangeService
)), Times.Once());
259
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
266
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
290
Mock<
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)
1374
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
1603
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2785
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2851
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2935
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
2968
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
3005
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
3040
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
274
yield return new object[] { typeof(
IComponentChangeService
) };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (3)
275
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
316
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
341
mockServiceProvider.Verify(p => p.GetService(typeof(
IComponentChangeService
)), Times.Once());
System\ComponentModel\Design\SiteNestedContainerTests.cs (6)
516
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
917
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
985
IComponentChangeService
changeService = Assert.IsAssignableFrom<
IComponentChangeService
>(host);
System\ComponentModel\Design\UndoUnitTests.cs (2)
21
Mock<
IComponentChangeService
> mockComponentChangeService = new();
26
.Setup(p => p.GetService(typeof(
IComponentChangeService
)))
System\Windows\Forms\Design\BindingNavigatorDesignerTests.cs (4)
15
private readonly Mock<
IComponentChangeService
> _componentChangeServiceMock = new();
37
_siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
40
_serviceProviderMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
44
_designerHostMock.Setup(h => h.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (3)
28
Mock<
IComponentChangeService
> componentChangeServiceMock = new();
30
serviceProviderMock.Setup(sp => sp.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
34
siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
System\Windows\Forms\Design\ChangeToolStripParentVerbTests.cs (5)
21
private readonly Mock<
IComponentChangeService
> _componentChangeServiceMock = new() ;
43
_siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
55
_serviceProviderMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(new Mock<
IComponentChangeService
>().Object);
59
_designerHostMock.Setup(h => h.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
14
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
38
mockSite.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)
53
Mock<
IComponentChangeService
> mockChangeService = new();
55
site.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\EditorServiceContextTests.cs (3)
19
private readonly Mock<
IComponentChangeService
> _mockChangeService;
124
_mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_mockChangeService.Object);
142
_mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_mockChangeService.Object);
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
16
private readonly Mock<
IComponentChangeService
> _mockChangeService;
29
_provider.Setup(p => p.GetService(typeof(
IComponentChangeService
))).Returns(_mockChangeService.Object);
System\Windows\Forms\Design\ParentControlDesignerTests.cs (4)
71
Mock<
IComponentChangeService
> mockChangeService = new();
74
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
105
Mock<
IComponentChangeService
> mockChangeService = new();
112
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (2)
18
private readonly Mock<
IComponentChangeService
> _changedServiceMock;
34
_selectionUIHandlerMock.Protected().Setup<object>("GetService", typeof(
IComponentChangeService
)).Returns(_changedServiceMock.Object);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
27
Mock<
IComponentChangeService
> mockChangeService = new();
28
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
29
mockDesignerHost.Setup(dh => dh.GetService(typeof(
IComponentChangeService
))).Returns(mockChangeService.Object);
System\Windows\Forms\Design\StandardMenuStripVerbTests.cs (6)
16
private readonly Mock<
IComponentChangeService
> _componentChangeServiceMock = new();
35
_siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
50
_serviceProviderMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(new Mock<
IComponentChangeService
>().Object);
54
_designerHostMock.Setup(h => h.GetService(typeof(
IComponentChangeService
))).Returns(_componentChangeServiceMock.Object);
143
IComponentChangeService
changeService = standardMenuStripVerb.TestAccessor.Dynamic._changeService;
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (2)
117
Mock<
IComponentChangeService
> compChangeServiceMock = new();
119
hostMock.Setup(h => h.GetService(typeof(
IComponentChangeService
)))
System\Windows\Forms\Design\TabOrderTests.cs (2)
20
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
42
_mockHost.Setup(h => h.GetService(typeof(
IComponentChangeService
))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
14
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
36
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(_mockComponentChangeService.Object);
40
_mockDesignerHost.Setup(d => d.GetService(typeof(
IComponentChangeService
))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (4)
61
Mock<
IComponentChangeService
> componentChangeServiceMock = new();
62
_siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
82
Mock<
IComponentChangeService
> componentChangeServiceMock = new();
83
_siteMock.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(componentChangeServiceMock.Object);
System\Windows\Forms\Design\ToolStripInSituServiceTests.cs (2)
14
private readonly Mock<
IComponentChangeService
> _mockComponentChangeService;
33
_mockDesignerHost.Setup(dh => dh.GetService(typeof(
IComponentChangeService
))).Returns(_mockComponentChangeService.Object);
System\Windows\Forms\Design\ToolStripPanelDesignerTests.cs (7)
36
Mock<
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
>);
111
Mock<
IComponentChangeService
> mockComponentChangeService = new();
113
mockDesignerHost.Setup(dh => dh.GetService(typeof(
IComponentChangeService
))).Returns(mockComponentChangeService.Object);
117
mockDesignerHost.Verify(dh => dh.GetService(typeof(
IComponentChangeService
)), Times.Exactly(2));
System\Windows\Forms\Design\UserControlDocumentDesignerTests.cs (2)
22
Mock<
IComponentChangeService
> componentChangeService = new(MockBehavior.Strict);
24
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
TestControlDesigner.Mocks.cs (3)
24
Mock<
IComponentChangeService
> mockComponentChangeService = new();
26
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
67
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
ToolStripDesignerTests.cs (4)
22
Mock<
IComponentChangeService
> mockIComponentChangeService = new(MockBehavior.Strict);
28
.Setup(s => s.GetService(typeof(
IComponentChangeService
)))
37
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
38
mockSite.Setup(s => s.GetService(typeof(
IComponentChangeService
))).Returns(mockComponentChangeService.Object);
ToolStripDropDownDesignerTest.cs (2)
28
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
30
.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)
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)
2715
Mock<
IComponentChangeService
> mockComponentChangeService = new(MockBehavior.Strict);
2722
.Setup(h => h.GetService(typeof(
IComponentChangeService
)))
2822
.Setup(h => h.GetService(typeof(
IComponentChangeService
)))
2839
Mock<
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
)))
4438
private readonly
IComponentChangeService
_componentChangeService = new ComponentChangeService();
4445
=> 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)
65
if (designerHost.GetService(typeof(
IComponentChangeService
)) is
IComponentChangeService
componentChangeService)