2 writes to BindableComponent
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\Binding.cs (2)
206BindableComponent = value; 215BindableComponent = oldTarget;
56 references to BindableComponent
System.Windows.Forms (36)
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (2)
199if (_owner.BindableComponent is not null && _owner.ControlAtDesignTime()) 214&& _owner.BindableComponent is not null
System\Windows\Forms\DataBinding\Binding.cs (27)
176public Control? Control => BindableComponent as Control; 191internal bool ComponentCreated => IsComponentCreated(BindableComponent); 195Debug.Assert(sender == BindableComponent, "which other control can send us the Load event?"); 202if (BindableComponent != value) 204IBindableComponent? oldTarget = BindableComponent; 222BindingContext.UpdateBinding((BindableComponent is not null && IsComponentCreated(BindableComponent) ? BindableComponent.BindingContext : null), this); 429if (BindableComponent is null) 441_propInfo.AddValueChanged(BindableComponent, handler); 447_validateInfo.AddEventHandler(BindableComponent, handler); 456_propInfo.RemoveValueChanged(BindableComponent, handler); 462_validateInfo.RemoveEventHandler(BindableComponent, handler); 477if (BindableComponent is not null && !string.IsNullOrEmpty(PropertyName)) 479BindableComponent.DataBindings.CheckDuplicates(this); 481Type controlClass = BindableComponent.GetType(); 495InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(BindableComponent)[typeof(InheritanceAttribute)]; 502propInfos = TypeDescriptor.GetProperties(BindableComponent); 547EventDescriptorCollection eventInfos = TypeDescriptor.GetEvents(BindableComponent); 571if (BindableComponent is not IComponent comp) 584if (_propIsNullInfo is not null && (bool?)_propIsNullInfo.GetValue(BindableComponent) == true) 589return _propInfo?.GetValue(BindableComponent) ?? DataSourceNullValue; 1052_propIsNullInfo.SetValue(BindableComponent, true); 1058_propInfo.SetValue(BindableComponent, DataSourceNullValue); 1062_propInfo.SetValue(BindableComponent, null); 1068_propInfo!.SetValue(BindableComponent, value); 1134BindableComponent is not null
System\Windows\Forms\DataBinding\BindingContext.cs (4)
295if (propBinding.BindableComponent is not null && newBindingContext.Contains(propBinding.BindableComponent, string.Empty)) 299BindingManagerBase bindingManagerBase = newBindingContext.EnsureListManager(propBinding.BindableComponent, string.Empty); 303if (binding.DataSource == propBinding.BindableComponent)
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (3)
173if (dataBinding.BindableComponent == _control) 178if (dataBinding.BindableComponent is not null) 244if (dataBinding.BindableComponent != _control)
System.Windows.Forms.Tests (20)
System\Windows\Forms\BindingContextTests.cs (1)
993Assert.NotNull(binding.BindableComponent);
System\Windows\Forms\BindingTests.cs (6)
25Assert.Null(binding.BindableComponent); 54Assert.Null(binding.BindableComponent); 83Assert.Null(binding.BindableComponent); 112Assert.Null(binding.BindableComponent); 141Assert.Null(binding.BindableComponent); 170Assert.Null(binding.BindableComponent);
System\Windows\Forms\ControlBindingsCollectionTests.cs (13)
63Assert.Same(control, binding.BindableComponent); 128Assert.Same(control, binding.BindableComponent); 145Assert.Same(control, binding.BindableComponent); 162Assert.Same(control, binding.BindableComponent); 179Assert.Same(control, binding.BindableComponent); 196Assert.Same(control, binding.BindableComponent); 213Assert.Same(control, binding.BindableComponent); 308Assert.Same(control, binding.BindableComponent); 312Assert.Null(binding.BindableComponent); 328Assert.Same(control, binding.BindableComponent); 332Assert.Null(binding.BindableComponent); 386Assert.Same(control, binding.BindableComponent); 390Assert.Null(binding.BindableComponent);