1 type derived from BindingSource
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
821private class SubBindingSource : BindingSource
15 instantiations of BindingSource
Accessibility_Core_App (1)
DataControls.Designer.cs (1)
64this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
DesignSurface (1)
MainForm.cs (1)
356BindingSource bindingSource = new()
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
183BindingSource bs = new(this, dataMember);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (1)
39using BindingSource bindingSource = new() { DataSource = componentMock.Object };
System.Windows.Forms.Tests (11)
BindingNavigatorTests.cs (1)
226return new() { DataSource = dt };
System\Windows\Forms\BindingContextTests.cs (1)
478CurrencyManager manager = new BindingSource().CurrencyManager;
System\Windows\Forms\BindingSourceTests.cs (7)
455using BindingSource source = new(mockCurrencyManagerProvider.Object, dataMember); 465Assert.Throws<NotSupportedException>(() => new BindingSource(dataSource, "dataMember")); 471Assert.Throws<ArgumentException>(() => new BindingSource(new DataClass(), "NoSuchProperty")); 579using BindingSource bindingSource = new(new DataSource(), nameof(DataSource.Member)); 603using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 639using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 675using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member));
System\Windows\Forms\DataGridViewTests.cs (1)
2885return new() { DataSource = dt };
System\Windows\Forms\ListBindingHelperTests.cs (1)
64BindingSource validSource = new(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null);
88 references to BindingSource
Accessibility_Core_App (1)
DataControls.Designer.cs (1)
403private System.Windows.Forms.BindingSource bindingSource1;
DesignSurface (3)
MainForm.cs (3)
277BindingSource bindingSource = surface.CreateComponent<BindingSource>(); 356BindingSource bindingSource = new()
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (2)
724/// <see cref="BindingSource"/> components for data binding scenarios could either handle the 726/// the relevant data from the data context to a BindingSource component's <see cref="BindingSource.DataSource"/>.
System\Windows\Forms\DataBinding\BindingNavigator.cs (5)
16private BindingSource? _bindingSource; 49public BindingNavigator(BindingSource? bindingSource) 240public BindingSource? BindingSource 896private void WireUpBindingSource(ref BindingSource? oldBindingSource, BindingSource? newBindingSource)
System\Windows\Forms\DataBinding\BindingSource.cs (7)
55private Dictionary<string, BindingSource>? _relatedBindingSources; 162BindingSource bs = GetRelatedBindingSource(dataMember); 168private BindingSource GetRelatedBindingSource(string dataMember) 183BindingSource bs = new(this, dataMember); 491BindingSource? bindingSource = newDataSource as BindingSource; 500bindingSource = bindingSource.DataSource as BindingSource;
System.Windows.Forms.Design (19)
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
57if (Component is BindingSource bindingSource && bindingSource.DataSource == e.Component)
System\Windows\Forms\Design\DesignBindingPicker.cs (18)
488if (_context?.Instance is BindingSource instance && _designerHost is not null) 628if (comp is BindingSource) 718if (!_showDataMembers && !(dataSource is BindingSource)) 735BindingSource bindingSource = []; 803bool isBindingSourceListMember = isList && dataSource is BindingSource; 806bool omitMemberContents = (isBindingSourceListMember && !pickingFieldMembers) || _context?.Instance is BindingSource; 1093if (isListofLists && _context?.Instance is BindingSource) 1245private BindingSource? CreateNewBindingSource(object dataSource, string dataMember) 1253BindingSource bs = []; 1329private BindingSource? CreateNewBindingSource(DataSourceDescriptor dataSourceDescriptor, string dataMember) 1719if (_context?.Instance is BindingSource) 1725if (dataMemberCount == 0 || _context?.Instance is BindingSource) 2130if (dataSource is BindingSource) 2338else if (DataSource is BindingSource) 2419BindingSource? newBindingSource = _picker?.CreateNewBindingSource(DataSource!, DataMember); 2579if (context is not null && context.Instance is BindingSource && dataSourceDescriptor is not null) 2595BindingSource? newBindingSource = _picker?.CreateNewBindingSource(dataSourceDescriptor, ""); 2658BindingSource? newBindingSource = _picker?.CreateNewBindingSource(dataSourceDescriptor, bindingSourceMember);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (1)
39using BindingSource bindingSource = new() { DataSource = componentMock.Object };
System.Windows.Forms.Tests (50)
BindingNavigatorTests.cs (6)
23using BindingSource bindingSource = []; 135BindingSource bindingSource = GetTestBindingSource(rowsCount); 153BindingSource bindingSource = GetTestBindingSource(5); 168BindingSource bindingSource1 = GetTestBindingSource(rowsCount1); 170BindingSource bindingSource2 = GetTestBindingSource(rowsCount2); 212private BindingSource GetTestBindingSource(int rowsCount)
System\Windows\Forms\BindingContextTests.cs (22)
60using BindingSource source = []; 68using BindingSource source1 = []; 69using BindingSource source2 = []; 90using BindingSource source1 = []; 91using BindingSource source2 = []; 113using BindingSource source1 = []; 114using BindingSource source2 = []; 135using BindingSource source1 = []; 136using BindingSource source2 = []; 151using BindingSource source = []; 166using BindingSource source = []; 240using BindingSource source1 = []; 242using BindingSource source2 = []; 273using BindingSource source1 = []; 275using BindingSource source2 = []; 318using BindingSource source = []; 345using BindingSource source = []; 360using BindingSource source = []; 375using BindingSource source = []; 535using BindingSource source = []; 770using BindingSource source1 = []; 771using BindingSource source2 = [];
System\Windows\Forms\BindingSourceTests.cs (9)
455using BindingSource source = new(mockCurrencyManagerProvider.Object, dataMember); 530using BindingSource bindingSource = []; 538using BindingSource bindingSource = []; 550using BindingSource bindingSource = []; 579using BindingSource bindingSource = new(new DataSource(), nameof(DataSource.Member)); 603using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 639using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 675using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 687((BindingSource)source).DataSource = newDataSource;
System\Windows\Forms\DataGridViewTests.cs (7)
2803BindingSource bindingSource = GetTestBindingSource(rowsCount); 2827BindingSource bindingSource = GetTestBindingSource(5); 2842BindingSource bindingSource1 = GetTestBindingSource(rowsCount1); 2844BindingSource bindingSource2 = GetTestBindingSource(rowsCount2); 2871private BindingSource GetTestBindingSource(int rowsCount) 4026BindingSource bindingSource1 = GetTestBindingSource(rowsCount1); 4028BindingSource bindingSource2 = GetTestBindingSource(rowsCount2);
System\Windows\Forms\ListBindingHelperTests.cs (2)
57BindingSource emptySource = []; 64BindingSource validSource = new(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null);
System\Windows\Forms\PropertyManagerTests.cs (4)
27BindingSource source = []; 37BindingSource source = []; 394BindingSource source = []; 404BindingSource source = [];