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)
778
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
823
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
843
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
864
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
891
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
938
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
956
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
969
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1002
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1047
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1069
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1093
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1118
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1155
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1175
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1186
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1211
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1248
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1268
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1279
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1302
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1339
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1358
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1369
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1392
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1433
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1453
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1466
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1499
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1540
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1560
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1573
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1601
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1638
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1657
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1667
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1688
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1717
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1735
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1742
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1779
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1794
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1799
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1814
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1835
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1852
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1858
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
1878
Mock<
IEventBindingService
> mockEventBindingService = new(MockBehavior.Strict);
1911
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
1929
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Once());
1941
mockSite.Verify(s => s.GetService(typeof(
IEventBindingService
)), Times.Exactly(2));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
205
.Setup(p => p.GetService(typeof(
IEventBindingService
)))
298
.Setup(p => p.GetService(typeof(
IEventBindingService
)))
System.Windows.Forms.Tests (8)
System\Windows\Forms\Design\EventsTabTests.cs (8)
55
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
61
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
66
Mock<
IEventBindingService
> mockEventBindingService = new();
72
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
94
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
98
.Setup(s => s.GetService(typeof(
IEventBindingService
)))
102
Mock<
IEventBindingService
> mockEventBindingService = new();
108
.Setup(s => s.GetService(typeof(
IEventBindingService
)))