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