11 references to new
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\BindingSource.cs (2)
66
:
this
(dataSource: null, dataMember: string.Empty)
183
BindingSource bs =
new
(this, dataMember);
System.Windows.Forms.Tests (9)
System\Windows\Forms\BindingSourceTests.cs (8)
455
using BindingSource source =
new
(mockCurrencyManagerProvider.Object, dataMember);
465
Assert.Throws<NotSupportedException>(() => new
BindingSource
(dataSource, "dataMember"));
471
Assert.Throws<ArgumentException>(() => new
BindingSource
(new DataClass(), "NoSuchProperty"));
579
using BindingSource bindingSource =
new
(new DataSource(), nameof(DataSource.Member));
603
using BindingSource bindingSource =
new
(dataSource, nameof(ISupportInitializeNotificationDataSource.Member));
639
using BindingSource bindingSource =
new
(dataSource, nameof(ISupportInitializeNotificationDataSource.Member));
675
using BindingSource bindingSource =
new
(dataSource, nameof(ISupportInitializeNotificationDataSource.Member));
827
public SubBindingSource(object dataSource, string dataMember) :
base
(dataSource, dataMember)
System\Windows\Forms\ListBindingHelperTests.cs (1)
64
BindingSource validSource =
new
(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null);