35 references to Add
DesignSurface (1)
MainForm.cs (1)
364richTextBox.DataBindings.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (1)
158Add(binding);
System.Windows.Forms.Tests (33)
System\Windows\Forms\BindingContextTests.cs (1)
992control.DataBindings.Add(binding);
System\Windows\Forms\ControlBindingsCollectionTests.cs (27)
74collection.Add(binding1); 75collection.Add(binding2); 76collection.Add(binding3); 79collection.Add(binding4); 93collection.Add(binding); 108collection.Add(binding1); 109collection.Add(binding2); 110collection.Add(binding3); 111collection.Add(binding4); 112collection.Add(binding5); 241Assert.Throws<ArgumentException>("PropertyName", () => collection.Add(new Binding("NoSuchProperty", new object(), "dataMember"))); 256collection.Add(binding); 258Assert.Throws<ArgumentException>("binding", () => collection.Add(new Binding(nameof(Control.Text), new object(), "dataMember"))); 272Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null)); 282collection.Add(binding); 283Assert.Throws<ArgumentException>("dataBinding", () => collection.Add(binding)); 295collection1.Add(binding); 296Assert.Throws<ArgumentException>("dataBinding", () => collection2.Add(binding)); 306collection.Add(binding); 326collection.Add(binding); 341collection.Add(binding); 354collection.Add(binding1); 369collection1.Add(binding1); 370collection2.Add(binding2); 384collection.Add(binding); 401collection.Add(binding); 414collection.Add(binding);
System\Windows\Forms\ControlTests.Methods.cs (4)
1151control.DataBindings.Add(new Binding("Text", new object(), "member")); 1599control.DataBindings.Add(new Binding("Text", new object(), "member")); 1647control.DataBindings.Add(binding); 6405control.DataBindings.Add(new Binding("Text", new object(), "member"));
System\Windows\Forms\PropertyManagerTests.cs (1)
173controlBindings.Add(cancelBinding);