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