1 implementation of IEventBindingService
System.Windows.Forms.Design (1)
System\ComponentModel\Design\EventBindingService.cs (1)
14
public abstract partial class EventBindingService :
IEventBindingService
106 references to IEventBindingService
netstandard (1)
netstandard.cs (1)
259
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
IEventBindingService
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
245
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
IEventBindingService
))]
System.Windows.Forms (15)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
313
_eventBindings ??= this.GetService<
IEventBindingService
>();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (6)
18
protected
IEventBindingService
? _eventBindings;
32
private static
IEventBindingService
? s_targetBindingService;
457
_eventBindings ??= this.GetService<
IEventBindingService
>();
623
_eventBindings ??= this.GetService<
IEventBindingService
>();
823
_eventBindings ??= this.GetService<
IEventBindingService
>();
852
_eventBindings ??= component.Site?.GetService<
IEventBindingService
>();
System\Windows\Forms\Design\EventsTab.cs (8)
35
if (GetEventBindingService(obj, context: null) is not
IEventBindingService
eventPropertyService)
48
/// Returns the most relevant <see cref="
IEventBindingService
"/>.
56
private
IEventBindingService
? GetEventBindingService(object @object, ITypeDescriptorContext? context)
68
if (_currentHost.TryGetService(out
IEventBindingService
? hostEventBindingService))
75
if (component.Site.TryGetService(out
IEventBindingService
? siteEventBindingService))
81
if (context.TryGetService(out
IEventBindingService
? contextEventBindingService))
94
/// The <see cref="EventsTab"/> uses <see cref="
IEventBindingService
.GetEventProperties(EventDescriptorCollection)"/>
102
if (GetEventBindingService(component, context) is not
IEventBindingService
eventBindingService)
System.Windows.Forms.Design (28)
System\ComponentModel\Design\ComponentDesigner.cs (1)
250
if (!TryGetService(out
IEventBindingService
? ebs)
System\ComponentModel\Design\EventBindingService.cs (9)
108
string
IEventBindingService
.CreateUniqueMethodName(IComponent component, EventDescriptor e)
120
ICollection
IEventBindingService
.GetCompatibleMethods(EventDescriptor e)
131
EventDescriptor?
IEventBindingService
.GetEvent(PropertyDescriptor property)
172
PropertyDescriptorCollection
IEventBindingService
.GetEventProperties(EventDescriptorCollection events)
197
PropertyDescriptor
IEventBindingService
.GetEventProperty(EventDescriptor e)
210
bool
IEventBindingService
.ShowCode()
219
bool
IEventBindingService
.ShowCode(int lineNumber)
228
bool
IEventBindingService
.ShowCode(IComponent component, EventDescriptor e)
233
PropertyDescriptor prop = ((
IEventBindingService
)this).GetEventProperty(e);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
362
if (context.TryGetService(out
IEventBindingService
? ebs))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (4)
416
if (comp is not null && manager.GetService(typeof(
IEventBindingService
)) is
IEventBindingService
ebs)
577
IEventBindingService
? ebs = manager.GetService<
IEventBindingService
>();
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
498
IEventBindingService
? evtSvc = manager.GetService<
IEventBindingService
>();
1232
IEventBindingService
? evtSvc = manager.GetService<
IEventBindingService
>();
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (2)
37
IEventBindingService
? eventBindings = manager.GetService<
IEventBindingService
>();
System\Windows\Forms\Design\CommandSet.cs (1)
1962
if (TryGetService(out
IEventBindingService
? evs))
System\Windows\Forms\Design\ComponentTray.cs (6)
1046
IEventBindingService
eps = (
IEventBindingService
)GetService(typeof(
IEventBindingService
));
2473
IEventBindingService
eps = (
IEventBindingService
)GetService(typeof(
IEventBindingService
));
System.Windows.Forms.Design.Tests (53)
System\ComponentModel\Design\ComponentDesignerTests.cs (51)
776
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
821
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
841
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
862
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
889
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
936
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
954
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
967
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1000
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1045
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1067
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1091
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1116
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1153
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1173
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1184
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1209
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1246
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1266
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1277
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1300
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1337
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1356
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1367
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1390
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1431
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1451
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1464
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1497
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1538
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1558
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1571
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1599
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1636
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1655
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1665
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1686
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1715
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1733
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1740
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1777
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1792
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1797
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1812
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1833
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1850
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1856
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1876
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1909
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1927
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1939
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
201
.Setup(p => p.GetService(typeof(
IEventBindingService
)))
294
.Setup(p => p.GetService(typeof(
IEventBindingService
)))
System.Windows.Forms.Tests (8)
System\Windows\Forms\Design\EventsTabTests.cs (8)
53
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
59
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
64
Mock<
IEventBindingService
> mockEventBindingService = new();
70
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
92
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
96
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
100
Mock<
IEventBindingService
> mockEventBindingService = new();
106
.Setup(s => s.GetService(typeof(
IEventBindingService
)))