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