64 references to
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1523
if (_owner.BindingContext
[
newDataSource] is not CurrencyManager cm)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
805
cm = (CurrencyManager)dataGridView.BindingContext
[
DataSource];
System.Windows.Forms.Tests (62)
System\Windows\Forms\BindingContextTests.cs (32)
74
Assert.Same(source1.CurrencyManager, context
[
dataSource]);
81
Assert.Same(source2.CurrencyManager, context
[
dataSource]);
98
Assert.Same(source1.CurrencyManager, context
[
dataSource1]);
99
Assert.Same(source2.CurrencyManager, context
[
dataSource2]);
119
Assert.Same(source1.CurrencyManager, context
[
dataSource]);
126
Assert.Same(source2.CurrencyManager, context
[
dataSource]);
143
Assert.Same(source1.CurrencyManager, context
[
dataSource1]);
144
Assert.Same(source2.CurrencyManager, context
[
dataSource2]);
406
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
dataSource]);
411
Assert.Same(manager, context
[
dataSource]);
419
CurrencyManager manager = Assert.IsType<CurrencyManager>(context
[
dataSource]);
425
Assert.Same(manager, context
[
dataSource]);
433
CurrencyManager manager = Assert.IsType<CurrencyManager>(context
[
dataSource]);
439
Assert.Same(manager, context
[
dataSource]);
452
CurrencyManager manager = Assert.IsType<CurrencyManager>(context
[
mockIListSource.Object]);
458
Assert.Same(manager, context
[
mockIListSource.Object]);
470
Assert.Throws<ArgumentNullException>("dataSource", () => context
[
mockIListSource.Object]);
497
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
mockCurrencyManagerProvider.Object]);
499
Assert.Same(manager, context
[
mockCurrencyManagerProvider.Object]);
550
Assert.Same(manager, context
[
dataSource]);
552
Assert.Same(manager, context
[
dataSource]);
713
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
dataSource]);
721
PropertyManager newManager = Assert.IsType<PropertyManager>(context
[
dataSource]);
727
Assert.Same(newManager, context
[
dataSource]);
734
Assert.Throws<ArgumentNullException>("dataSource", () => context
[
null]);
804
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
dataSource]);
822
CurrencyManager manager = Assert.IsType<CurrencyManager>(context
[
dataSource]);
886
PropertyManager manager1 = Assert.IsType<PropertyManager>(context1
[
dataSource]);
892
PropertyManager manager2 = Assert.IsType<PropertyManager>(context2
[
dataSource]);
917
CurrencyManager manager1 = Assert.IsType<CurrencyManager>(context1
[
dataSource]);
924
CurrencyManager manager2 = Assert.IsType<CurrencyManager>(context2
[
dataSource]);
952
PropertyManager manager = Assert.IsAssignableFrom<PropertyManager>(context
[
dataSource]);
System\Windows\Forms\ListControlTests.cs (26)
202
Assert.Same(value
[
dataSource], control.DataManager);
210
Assert.Same(value
[
dataSource], control.DataManager);
229
Assert.Same(value
[
dataSource], control.DataManager);
237
Assert.Same(value
[
dataSource], control.DataManager);
257
Assert.Same(value
[
dataSource], control.DataManager);
265
Assert.Same(value
[
dataSource], control.DataManager);
286
Assert.Same(value
[
dataSource], control.DataManager);
293
Assert.Same(value
[
dataSource], control.DataManager);
872
Assert.Same(context
[
value], control.DataManager);
885
Assert.Same(context
[
value], control.DataManager);
909
Assert.Same(context
[
value], control.DataManager);
922
Assert.Same(context
[
value], control.DataManager);
940
Assert.Same(context
[
value], control.DataManager);
946
Assert.Same(context
[
value], control.DataManager);
969
Assert.Same(context
[
value], control.DataManager);
982
Assert.Same(context
[
value], control.DataManager);
1175
Assert.Same(context
[
dataSource], control.DataManager);
1182
Assert.Same(context
[
dataSource], control.DataManager);
1204
Assert.Same(context
[
dataSource], control.DataManager);
1211
Assert.Same(context
[
dataSource], control.DataManager);
1237
Assert.Same(context
[
dataSource], control.DataManager);
1252
Assert.Same(context
[
dataSource], control.DataManager);
1773
Assert.Same(context
[
dataSource], control.DataManager);
1781
Assert.Same(context
[
dataSource], control.DataManager);
1821
Assert.Same(context
[
dataSource], control.DataManager);
1829
Assert.Same(context
[
dataSource], control.DataManager);
System\Windows\Forms\PropertyManagerTests.cs (4)
28
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
new DataSource()]);
38
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
new DataSource()]);
395
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
new DataSource()]);
405
PropertyManager manager = Assert.IsType<PropertyManager>(context
[
new DataSource()]);