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