91 references to Binding
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
86
return new
Binding
(
System.Windows.Forms.Tests (90)
System\Windows\Forms\BindingCompleteEventArgsTests.cs (4)
11
yield return new object[] { new
Binding
(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate };
30
yield return new object[] { new
Binding
(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText" };
49
yield return new object[] { new
Binding
(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException() };
68
yield return new object[] { new
Binding
(null, new object(), "member"), BindingCompleteState.DataError, BindingCompleteContext.DataSourceUpdate, "errorText", new InvalidOperationException(), true };
System\Windows\Forms\BindingContextTests.cs (9)
798
Binding binding =
new
(null, dataSource, "dataMember");
816
Binding binding =
new
(null, dataSource, "dataMember");
835
Binding binding =
new
(null, dataSource, "Property.ignored");
854
Binding binding =
new
(null, dataSource, "Property.ignore");
874
Binding binding =
new
(null, dataSource, "dataMember");
905
Binding binding =
new
(null, dataSource, "dataMember");
937
Binding binding =
new
(null, dataSource, "dataMember");
964
Binding binding =
new
(null, dataSource, "dataMember");
989
Binding binding =
new
(null, dataSource, "dataMember");
System\Windows\Forms\BindingManagerBaseTests.cs (11)
22
Binding binding =
new
(null, new object(), "member");
42
Binding binding =
new
(null, new object(), "member");
55
Binding binding =
new
(null, new object(), "member");
66
Binding binding =
new
(null, new object(), "member");
86
Binding binding =
new
(null, new object(), "member");
102
Binding binding =
new
(null, new object(), "member");
114
Binding binding1 =
new
(null, new object(), "member");
115
Binding binding2 =
new
(null, new object(), "member");
129
Binding binding1 =
new
(null, new object(), "member");
130
Binding binding2 =
new
(null, new object(), "member");
144
Binding binding =
new
(null, new object(), "member");
System\Windows\Forms\BindingsCollectionTests.cs (23)
25
Binding binding =
new
(null, new object(), "member");
37
Binding binding =
new
(null, new object(), "member");
91
Binding binding =
new
(null, new object(), "member");
103
Binding binding =
new
(null, new object(), "member");
157
Binding binding =
new
(null, new object(), "member");
172
Binding binding =
new
(null, new object(), "member");
221
Binding binding =
new
(null, new object(), "member");
232
Binding binding =
new
(null, new object(), "member");
281
Binding binding =
new
(null, new object(), "member");
292
Binding binding =
new
(null, new object(), "member");
303
Binding binding =
new
(null, new object(), "member");
359
Binding binding =
new
(null, new object(), "member");
370
Binding binding1 =
new
(null, new object(), "member");
371
Binding binding2 =
new
(null, new object(), "member");
383
Binding binding1 =
new
(null, new object(), "member");
384
Binding binding2 =
new
(null, new object(), "member");
397
Binding binding =
new
(null, new object(), "member");
408
Binding binding =
new
(null, new object(), "member");
464
Binding binding =
new
(null, new object(), "member");
475
Binding binding1 =
new
(null, new object(), "member");
476
Binding binding2 =
new
(null, new object(), "member");
488
Binding binding1 =
new
(null, new object(), "member");
489
Binding binding2 =
new
(null, new object(), "member");
System\Windows\Forms\BindingTests.cs (11)
24
Binding binding =
new
(propertyName, dataSource, dataMember);
197
Binding binding =
new
("propertyName", new object(), "dataMember")
213
Binding binding =
new
("propertyName", new object(), "dataMember")
229
Binding binding =
new
("propertyName", new object(), "dataMember")
250
Binding binding =
new
("propertyName", new object(), "dataMember")
265
Binding binding =
new
("propertyName", new object(), "dataMember")
280
Binding binding =
new
("propertyName", new object(), "dataMember")
306
Binding binding =
new
("propertyName", new object(), "dataMember")
559
Binding binding =
new
("propertyName", new object(), "dataMember")
605
Binding binding =
new
("propertyName", new object(), "dataMember")
630
public SubBinding(string propertyName, object dataSource, string dataMember) :
base
(propertyName, dataSource, dataMember)
System\Windows\Forms\ControlBindingsCollectionTests.cs (28)
48
yield return new object[] { new
Binding
(null, new object(), "dataMember") };
49
yield return new object[] { new
Binding
("", new object(), "dataMember") };
50
yield return new object[] { new
Binding
(nameof(Control.Text), new object(), "dataMember") };
71
Binding binding1 =
new
("", 1, "dataMember");
72
Binding binding2 =
new
(null, 1, "dataMember");
73
Binding binding3 =
new
(nameof(Control.Text), 1, "dataMember");
78
Binding binding4 =
new
(nameof(Control.Text), 1, "dataMember");
92
Binding binding =
new
(nameof(Control.Text), 1, "dataMember");
102
Binding binding1 =
new
(nameof(SubControl.Text), 1, "dataMember");
103
Binding binding2 =
new
(nameof(SubControl.AccessibleRole), 1, "dataMember");
104
Binding binding3 =
new
(null, 1, "dataMember");
105
Binding binding4 =
new
("", 1, "dataMember");
106
Binding binding5 =
new
(nameof(SubControl.text), 1, "dataMember");
241
Assert.Throws<ArgumentException>("PropertyName", () => collection.Add(new
Binding
("NoSuchProperty", new object(), "dataMember")));
255
Binding binding =
new
(nameof(Control.Text), new object(), "dataMember");
258
Assert.Throws<ArgumentException>("binding", () => collection.Add(new
Binding
(nameof(Control.Text), new object(), "dataMember")));
280
Binding binding =
new
(null, new object(), "member");
293
Binding binding =
new
(null, new object(), "member");
304
Binding binding =
new
(null, new object(), "member");
324
Binding binding =
new
(null, new object(), "member");
340
Binding binding =
new
(null, new object(), "member");
352
Binding binding1 =
new
(null, new object(), "member");
353
Binding binding2 =
new
(null, new object(), "member");
367
Binding binding1 =
new
(null, new object(), "member");
368
Binding binding2 =
new
(null, new object(), "member");
382
Binding binding =
new
(null, new object(), "member");
400
Binding binding =
new
(nameof(Control.Text), new object(), "member");
413
Binding binding =
new
(nameof(Control.Text), new object(), "member");
System\Windows\Forms\ControlTests.Methods.cs (4)
1151
control.DataBindings.Add(new
Binding
("Text", new object(), "member"));
1599
control.DataBindings.Add(new
Binding
("Text", new object(), "member"));
1646
Binding binding =
new
("Text", new object(), "member");
6414
control.DataBindings.Add(new
Binding
("Text", new object(), "member"));