18 writes to DataSource
System.Windows.Forms.Tests (18)
System\Windows\Forms\ErrorProviderTests.cs (18)
297DataSource = value, 344DataSource = value, 359DataSource = value 379DataSource = value 385provider.DataSource = value; 397DataSource = value 403provider.DataSource = value; 414DataSource = new object() 417provider.DataSource = value; 421provider.DataSource = value; 442DataSource = value 447provider.DataSource = value; 470DataSource = value 485DataSource = value 500DataSource = value 513provider.DataSource = new object(); 524provider.DataSource = new object(); 1320var exception = Record.Exception(() => errorProvider.DataSource = customDataSource);
35 references to DataSource
System.Windows.Forms (8)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (8)
21[ComplexBindingProperties(nameof(DataSource), nameof(DataMember))] 188SetErrorManager(DataSource, DataMember, force: true); 249bool dataSourceChanged = DataSource != newDataSource; 344SetErrorManager(DataSource, value, false); 405SetErrorManager(DataSource, DataMember, true); 610SetErrorManager(DataSource, DataMember, true); 621if (DataSource is ISupportInitializeNotification dsInit && !dsInit.IsInitialized) 638ISupportInitializeNotification? dsInit = DataSource as ISupportInitializeNotification;
System.Windows.Forms.Tests (27)
System\Windows\Forms\ErrorProviderTests.cs (27)
23Assert.Null(provider.DataSource); 46Assert.Null(provider.DataSource); 73Assert.Null(provider.DataSource); 300Assert.Same(value, provider.DataSource); 347Assert.Same(value, provider.DataSource); 362Assert.Same(value, provider.DataSource); 381Assert.Same(value, provider.DataSource); 386Assert.Same(value, provider.DataSource); 399Assert.Same(value, provider.DataSource); 404Assert.Same(value, provider.DataSource); 418Assert.Same(value, provider.DataSource); 422Assert.Same(value, provider.DataSource); 444Assert.Same(value, provider.DataSource); 448Assert.Same(value, provider.DataSource); 472Assert.Same(value, provider.DataSource); 487Assert.Same(value, provider.DataSource); 502Assert.Same(value, provider.DataSource); 510PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 521PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 529Assert.Null(provider.DataSource); 578Assert.Null(provider.DataSource); 788Assert.Same(newDataSource, provider.DataSource); 793Assert.Same(newDataSource, provider.DataSource); 822Assert.Same(newDataSource, provider.DataSource); 827Assert.Same(newDataSource, provider.DataSource); 841Assert.Same(newDataSource, provider.DataSource); 846Assert.Same(newDataSource, provider.DataSource);