18 writes to DataSource
System.Windows.Forms.Tests (18)
System\Windows\Forms\ErrorProviderTests.cs (18)
299DataSource = value, 346DataSource = value, 361DataSource = value 381DataSource = value 387provider.DataSource = value; 399DataSource = value 405provider.DataSource = value; 416DataSource = new object() 419provider.DataSource = value; 423provider.DataSource = value; 444DataSource = value 449provider.DataSource = value; 472DataSource = value 487DataSource = value 502DataSource = value 515provider.DataSource = new object(); 526provider.DataSource = new object(); 1322var 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); 616SetErrorManager(DataSource, DataMember, true); 627if (DataSource is ISupportInitializeNotification dsInit && !dsInit.IsInitialized) 644ISupportInitializeNotification? dsInit = DataSource as ISupportInitializeNotification;
System.Windows.Forms.Tests (27)
System\Windows\Forms\ErrorProviderTests.cs (27)
25Assert.Null(provider.DataSource); 48Assert.Null(provider.DataSource); 75Assert.Null(provider.DataSource); 302Assert.Same(value, provider.DataSource); 349Assert.Same(value, provider.DataSource); 364Assert.Same(value, provider.DataSource); 383Assert.Same(value, provider.DataSource); 388Assert.Same(value, provider.DataSource); 401Assert.Same(value, provider.DataSource); 406Assert.Same(value, provider.DataSource); 420Assert.Same(value, provider.DataSource); 424Assert.Same(value, provider.DataSource); 446Assert.Same(value, provider.DataSource); 450Assert.Same(value, provider.DataSource); 474Assert.Same(value, provider.DataSource); 489Assert.Same(value, provider.DataSource); 504Assert.Same(value, provider.DataSource); 512PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 523PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataSource)]; 531Assert.Null(provider.DataSource); 580Assert.Null(provider.DataSource); 790Assert.Same(newDataSource, provider.DataSource); 795Assert.Same(newDataSource, provider.DataSource); 824Assert.Same(newDataSource, provider.DataSource); 829Assert.Same(newDataSource, provider.DataSource); 843Assert.Same(newDataSource, provider.DataSource); 848Assert.Same(newDataSource, provider.DataSource);