70 references to Bindings
System.Windows.Forms (18)
System\Windows\Forms\DataBinding\BindingContext.cs (4)
300for (int i = 0; i < bindingManagerBase.Bindings.Count; i++) 302Binding binding = bindingManagerBase.Bindings[i]; 350oldManager?.Bindings.Remove(binding); 362newManager.Bindings.Add(binding);
System\Windows\Forms\DataBinding\BindingManagerBase.cs (6)
246int numLinks = Bindings.Count; 249if (Bindings[i].PullData()) 270int numLinks = Bindings.Count; 273Bindings[i].PushData(); 313foreach (Binding bi in Bindings) 329foreach (Binding bi in Bindings)
System\Windows\Forms\DataBinding\CurrencyManager.cs (2)
1023int numLinks = Bindings.Count; 1026Bindings[i].UpdateIsBinding();
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
148for (int i = 0; i < Bindings.Count; i++) 150Bindings[i].UpdateIsBinding();
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (4)
368currManager.Bindings.CollectionChanged += ErrorManager_BindingsChanged; 385currManager.Bindings.CollectionChanged -= ErrorManager_BindingsChanged; 420BindingsCollection errBindings = _errorManager.Bindings; 462BindingsCollection errBindings = _errorManager.Bindings;
System.Windows.Forms.Tests (52)
System\Windows\Forms\BindingContextTests.cs (15)
804Assert.Same(binding, Assert.Single(manager.Bindings)); 822Assert.Same(binding, Assert.Single(manager.Bindings)); 841Assert.Same(binding, Assert.Single(manager.Bindings)); 860Assert.Same(binding, Assert.Single(manager.Bindings)); 886Assert.Empty(manager1.Bindings); 892Assert.Same(binding, Assert.Single(manager2.Bindings)); 917Assert.Empty(manager1.Bindings); 924Assert.Same(binding, Assert.Single(manager2.Bindings)); 952Assert.Empty(manager.Bindings); 969oldManager.Bindings.CollectionChanged += (sender, e) => 974MethodInfo m = oldManager.Bindings.GetType().GetMethod("Add", BindingFlags.NonPublic | BindingFlags.Instance); 975m.Invoke(oldManager.Bindings, [binding]); 997oldManager.Bindings.CollectionChanged += (sender, e) => 1002MethodInfo m = oldManager.Bindings.GetType().GetMethod("Add", BindingFlags.NonPublic | BindingFlags.Instance); 1003m.Invoke(oldManager.Bindings, [binding]);
System\Windows\Forms\BindingManagerBaseTests.cs (15)
13Assert.Empty(manager.Bindings); 14Assert.Same(manager.Bindings, manager.Bindings); 21BindingsCollection collection = manager.Bindings; 33BindingsCollection collection = manager.Bindings; 41BindingsCollection collection = manager.Bindings; 53BindingsCollection collection1 = manager1.Bindings; 54BindingsCollection collection2 = manager2.Bindings; 65BindingsCollection collection = manager.Bindings; 85BindingsCollection collection = manager.Bindings; 101BindingsCollection collection = manager.Bindings; 113BindingsCollection collection = manager.Bindings; 127BindingsCollection collection1 = manager1.Bindings; 128BindingsCollection collection2 = manager2.Bindings; 143BindingsCollection collection = manager.Bindings;
System\Windows\Forms\BindingSourceTests.cs (21)
23Assert.Empty(source.CurrencyManager.Bindings); 24Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 82Assert.Empty(source.CurrencyManager.Bindings); 83Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 147Assert.Empty(source.CurrencyManager.Bindings); 148Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 233Assert.Empty(source.CurrencyManager.Bindings); 234Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 303Assert.Empty(source.CurrencyManager.Bindings); 304Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 412Assert.Empty(source.CurrencyManager.Bindings); 413Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings); 486Assert.Empty(source.CurrencyManager.Bindings); 487Assert.Same(source.CurrencyManager.Bindings, source.CurrencyManager.Bindings);
System\Windows\Forms\PropertyManagerTests.cs (1)
172manager.Bindings.Add(cancelBinding);