Implemented interface member:
property
CurrencyManager
System.Windows.Forms.ICurrencyManagerProvider.CurrencyManager
118 references to CurrencyManager
System.Windows.Forms.Tests (118)
System\Windows\Forms\BindingContextTests.cs (42)
61
Assert.Throws<ArgumentNullException>("dataSource", () => context.Add(null, source.
CurrencyManager
));
71
context.Add(dataSource, source1.
CurrencyManager
);
74
Assert.Same(source1.
CurrencyManager
, context[dataSource]);
75
Assert.Same(source1.
CurrencyManager
, context[dataSource, null]);
76
Assert.Same(source1.
CurrencyManager
, context[dataSource, string.Empty]);
79
context.Add(dataSource, source2.
CurrencyManager
);
81
Assert.Same(source2.
CurrencyManager
, context[dataSource]);
82
Assert.Same(source2.
CurrencyManager
, context[dataSource, null]);
83
Assert.Same(source2.
CurrencyManager
, context[dataSource, string.Empty]);
94
context.Add(dataSource1, source1.
CurrencyManager
);
95
context.Add(dataSource2, source2.
CurrencyManager
);
98
Assert.Same(source1.
CurrencyManager
, context[dataSource1]);
99
Assert.Same(source2.
CurrencyManager
, context[dataSource2]);
116
context.AddCore(dataSource, source1.
CurrencyManager
);
119
Assert.Same(source1.
CurrencyManager
, context[dataSource]);
120
Assert.Same(source1.
CurrencyManager
, context[dataSource, null]);
121
Assert.Same(source1.
CurrencyManager
, context[dataSource, string.Empty]);
124
context.AddCore(dataSource, source2.
CurrencyManager
);
126
Assert.Same(source2.
CurrencyManager
, context[dataSource]);
127
Assert.Same(source2.
CurrencyManager
, context[dataSource, null]);
128
Assert.Same(source2.
CurrencyManager
, context[dataSource, string.Empty]);
139
context.AddCore(dataSource1, source1.
CurrencyManager
);
140
context.AddCore(dataSource2, source2.
CurrencyManager
);
143
Assert.Same(source1.
CurrencyManager
, context[dataSource1]);
144
Assert.Same(source2.
CurrencyManager
, context[dataSource2]);
152
Assert.Throws<ArgumentNullException>("dataSource", () => context.AddCore(null, source.
CurrencyManager
));
168
context.Add(dataSource, source.
CurrencyManager
);
174
Assert.Equal(source.
CurrencyManager
, Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(array[1]).Value).Target);
244
context.Add(dataSource1, source1.
CurrencyManager
);
245
context.Add(dataSource2, source2.
CurrencyManager
);
277
context.Add(dataSource1, source1.
CurrencyManager
);
278
context.Add(dataSource2, source2.
CurrencyManager
);
319
context.Add(new DataSource(), source.
CurrencyManager
);
346
context.Add(new DataSource(), source.
CurrencyManager
);
362
context.Add(dataSource, source.
CurrencyManager
);
378
context.Add(dataSource1, source.
CurrencyManager
);
478
CurrencyManager manager = new BindingSource().
CurrencyManager
;
537
context.Add(dataSource, source.
CurrencyManager
);
775
context1.Add(dataSource1, source1.
CurrencyManager
);
776
context2.Add(dataSource1, source1.
CurrencyManager
);
777
context3.Add(dataSource2, source1.
CurrencyManager
);
778
context4.Add(dataSource2, source2.
CurrencyManager
);
System\Windows\Forms\BindingSourceTests.cs (70)
22
Assert.Equal(0, source.
CurrencyManager
.Count);
23
Assert.Empty(source.
CurrencyManager
.Bindings);
24
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
25
Assert.Throws<IndexOutOfRangeException>(() => source.
CurrencyManager
.Current);
26
Assert.True(source.
CurrencyManager
.IsBindingSuspended);
27
Assert.Same(source, source.
CurrencyManager
.List);
28
Assert.Equal(-1, source.
CurrencyManager
.Position);
29
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
81
Assert.Equal(0, source.
CurrencyManager
.Count);
82
Assert.Empty(source.
CurrencyManager
.Bindings);
83
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
84
Assert.Throws<IndexOutOfRangeException>(() => source.
CurrencyManager
.Current);
85
Assert.True(source.
CurrencyManager
.IsBindingSuspended);
86
Assert.Same(source, source.
CurrencyManager
.List);
87
Assert.Equal(-1, source.
CurrencyManager
.Position);
88
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
146
Assert.Equal(expected.Count, source.
CurrencyManager
.Count);
147
Assert.Empty(source.
CurrencyManager
.Bindings);
148
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
149
Assert.Throws<IndexOutOfRangeException>(() => source.
CurrencyManager
.Current);
150
Assert.True(source.
CurrencyManager
.IsBindingSuspended);
151
Assert.Same(source, source.
CurrencyManager
.List);
152
Assert.Equal(-1, source.
CurrencyManager
.Position);
153
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
232
Assert.Equal(expected.Count, source.
CurrencyManager
.Count);
233
Assert.Empty(source.
CurrencyManager
.Bindings);
234
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
235
Assert.Equal(expected[0], source.
CurrencyManager
.Current);
236
Assert.False(source.
CurrencyManager
.IsBindingSuspended);
237
Assert.Same(source, source.
CurrencyManager
.List);
238
Assert.Equal(0, source.
CurrencyManager
.Position);
239
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
302
Assert.Equal(expected.Count, source.
CurrencyManager
.Count);
303
Assert.Empty(source.
CurrencyManager
.Bindings);
304
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
305
Assert.Equal(expected[0], source.
CurrencyManager
.Current);
306
Assert.False(source.
CurrencyManager
.IsBindingSuspended);
307
Assert.Same(source, source.
CurrencyManager
.List);
308
Assert.Equal(0, source.
CurrencyManager
.Position);
309
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
411
Assert.Equal(0, source.
CurrencyManager
.Count);
412
Assert.Empty(source.
CurrencyManager
.Bindings);
413
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
414
Assert.Throws<IndexOutOfRangeException>(() => source.
CurrencyManager
.Current);
415
Assert.True(source.
CurrencyManager
.IsBindingSuspended);
416
Assert.Same(source, source.
CurrencyManager
.List);
417
Assert.Equal(-1, source.
CurrencyManager
.Position);
418
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
485
Assert.Equal(0, source.
CurrencyManager
.Count);
486
Assert.Empty(source.
CurrencyManager
.Bindings);
487
Assert.Same(source.
CurrencyManager
.Bindings, source.
CurrencyManager
.Bindings);
488
Assert.Throws<IndexOutOfRangeException>(() => source.
CurrencyManager
.Current);
489
Assert.True(source.
CurrencyManager
.IsBindingSuspended);
490
Assert.Same(source, source.
CurrencyManager
.List);
491
Assert.Equal(-1, source.
CurrencyManager
.Position);
492
Assert.Same(source.
CurrencyManager
, source.
CurrencyManager
);
System\Windows\Forms\DataGridViewTests.cs (4)
2805
{ bindingSource, bindingSource.
CurrencyManager
}
2846
{ bindingSource1, bindingSource1.
CurrencyManager
}
4030
{ bindingSource1, bindingSource1.
CurrencyManager
}
4034
{ bindingSource2, bindingSource2.
CurrencyManager
}
System\Windows\Forms\ListBindingHelperTests.cs (2)
61
.Returns(emptySource.
CurrencyManager
);
65
yield return new object[] { new CustomCurrencyManagerProvider { CurrencyManagerResult = validSource.
CurrencyManager
}, "Property", 1 };