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