9 references to Add
System.Windows.Forms (5)
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (5)
61
Add
(
76
Add
(
92
Add
(
109
Add
(
127
Add
(
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlBindingsCollectionTests.cs (4)
211
Binding binding = collection.
Add
(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture);
233
Assert.Throws<ArgumentNullException>("dataSource", () => collection.
Add
("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture));
247
Assert.Throws<ArgumentException>("PropertyName", () => collection.
Add
("NoSuchProperty", new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture));
264
Assert.Throws<ArgumentException>("binding", () => collection.
Add
(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture));