1 type derived from CurrencyManager
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
13internal class RelatedCurrencyManager : CurrencyManager
2 instantiations of CurrencyManager
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\BindingContext.cs (1)
249bindingManagerBase = new CurrencyManager(dataSource);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
84_currencyManager = new CurrencyManager(this);
79 references to CurrencyManager
System.Windows.Forms (40)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
105public CurrencyManager? CurrencyManager { get; private set; } 1079CurrencyManager = _owner.BindingContext[DataSource, DataMember] as CurrencyManager; 1523if (_owner.BindingContext[newDataSource] is not CurrencyManager cm)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (8)
124private CurrencyManager? DataManager 790private CurrencyManager? GetDataManager(DataGridView? dataGridView) 792CurrencyManager? cm = Properties.GetValueOrDefault<CurrencyManager?>(s_propComboBoxCellDataManager); 805cm = (CurrencyManager)dataGridView.BindingContext[DataSource]; 1098CurrencyManager? dataManager = GetDataManager(dataGridView); 1356DataManager = (CurrencyManager)DataGridView!.BindingContext![DataSource!, displayBindingMember.BindingPath]; 1387DataManager = (CurrencyManager)DataGridView!.BindingContext![DataSource!, valueBindingMember.BindingPath];
System\Windows\Forms\Controls\ListControl\ListControl.cs (5)
24private CurrencyManager? _dataManager; 97protected CurrencyManager? DataManager => _dataManager; 258private static bool BindingMemberInfoInDataManager(CurrencyManager dataManager, BindingMemberInfo bindingMemberInfo) 701CurrencyManager? newDataManager = null; 709newDataManager = (CurrencyManager)BindingContext[newDataSource, newDisplayMember.BindingPath];
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (4)
90&& _bindingManager is not CurrencyManager) 183if (_bindingManager is CurrencyManager cm) 208&& _bindingManager is not CurrencyManager) 234&& _bindingManager is not CurrencyManager)
System\Windows\Forms\DataBinding\Binding.cs (2)
246if (_bindingManagerBase is CurrencyManager oldCurrencyManager) 253if (value is CurrencyManager newCurrencyManager)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
79if (this is CurrencyManager currencyManager)
System\Windows\Forms\DataBinding\BindingSource.cs (9)
44private readonly CurrencyManager _currencyManager; 136public virtual CurrencyManager? CurrencyManager 141public virtual CurrencyManager? GetRelatedCurrencyManager(string? dataMember) 891CurrencyManager cm = (CurrencyManager)sender!; 1261private void WireCurrencyManager(CurrencyManager cm) 1272private void UnwireCurrencyManager(CurrencyManager cm) 1287CurrencyManager? cm = provider.CurrencyManager; 1300CurrencyManager? cm = provider.CurrencyManager;
System\Windows\Forms\DataBinding\ICurrencyManagerProvider.cs (2)
12CurrencyManager? CurrencyManager { get; } 19CurrencyManager? GetRelatedCurrencyManager(string? dataMember);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
56CurrencyManager? cm = currencyManagerProvider.CurrencyManager;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (3)
55if (bmb is CurrencyManager currencyManager) 68if (bmb is CurrencyManager currencyManager) 158if (_parentManager is CurrencyManager currencyManager)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (2)
365if (listManager is CurrencyManager currManager) 382if (listManager is CurrencyManager currManager)
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
712CurrencyManager? currencyManager = null; 715currencyManager = BindingContext?[_liveDataGridView.DataSource, _liveDataGridView.DataMember] as CurrencyManager;
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
24private CurrencyManager? _currencyManager; 222CurrencyManager? newCM = null; 225newCM = (CurrencyManager?)dataGridView.BindingContext?[dataGridView.DataSource, dataGridView.DataMember];
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1552CurrencyManager? listManager = _bindingContext?[dataSource, dataMember] as CurrencyManager;
System.Windows.Forms.Tests (32)
System\Windows\Forms\BindingContextTests.cs (22)
419CurrencyManager manager = Assert.IsType<CurrencyManager>(context[dataSource]); 433CurrencyManager manager = Assert.IsType<CurrencyManager>(context[dataSource]); 452CurrencyManager manager = Assert.IsType<CurrencyManager>(context[mockIListSource.Object]); 478CurrencyManager manager = new BindingSource().CurrencyManager; 495.Returns((CurrencyManager)null); 579CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 616CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 638CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 821CurrencyManager manager = Assert.IsType<CurrencyManager>(context[dataSource]); 859CurrencyManager manager = Assert.IsAssignableFrom<CurrencyManager>(context[dataSource, "Property"]); 916CurrencyManager manager1 = Assert.IsType<CurrencyManager>(context1[dataSource]); 923CurrencyManager manager2 = Assert.IsType<CurrencyManager>(context2[dataSource]);
System\Windows\Forms\BindingSourceTests.cs (1)
453.Returns<CurrencyManager>(null)
System\Windows\Forms\ComboBoxTests.cs (1)
2827public new CurrencyManager DataManager => base.DataManager;
System\Windows\Forms\ListBindingHelperTests.cs (4)
54.Returns((CurrencyManager)null); 510public CurrencyManager CurrencyManagerResult { get; set; } 512public CurrencyManager CurrencyManager => CurrencyManagerResult; 514public CurrencyManager GetRelatedCurrencyManager(string dataMember)
System\Windows\Forms\ListBoxTests.cs (1)
6408public new CurrencyManager DataManager => base.DataManager;
System\Windows\Forms\ListControlTests.cs (3)
433CurrencyManager dataManger = control.DataManager; 534CurrencyManager dataManger = control.DataManager; 2916public new CurrencyManager DataManager => base.DataManager;