15 references to Add
Accessibility_Core_App (10)
DataBindingExample.cs (10)
51
textBox1.DataBindings.
Add
("Text", stu, "StudentNumber");
52
domainUpDown1.DataBindings.
Add
("Text", stu, "LuckyNumber");
53
numericUpDown1.DataBindings.
Add
("Text", stu, "Count");
54
label1.DataBindings.
Add
("Text", stu, "Name");
55
button1.DataBindings.
Add
("Text", stu, "Sex");
56
maskedTextBox1.DataBindings.
Add
("Text", stu, "PhoneNumber");
57
linkLabel1.DataBindings.
Add
("Text", stu, "HomeNumber");
58
richTextBox1.DataBindings.
Add
("Text", stu, "Hobby");
59
checkBox1.DataBindings.
Add
("Checked", stu, "IsStudent");
60
radioButton1.DataBindings.
Add
("Checked", stu, "IsStudent");
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlBindingsCollectionTests.cs (4)
126
Binding binding = collection.
Add
(nameof(Control.Text), 1, "dataMember");
228
Assert.Throws<ArgumentNullException>("dataSource", () => collection.
Add
("propertyName", null, "dataMember"));
242
Assert.Throws<ArgumentException>("PropertyName", () => collection.
Add
("NoSuchProperty", new object(), "dataMember"));
259
Assert.Throws<ArgumentException>("binding", () => collection.
Add
(nameof(Control.Text), new object(), "dataMember"));
System\Windows\Forms\ErrorProviderTests.cs (1)
1317
form.DataBindings.
Add
("Text", customDataSource, "Error");