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