16 references to OnValidation
System.Windows.Forms (3)
System\Windows\Forms\DataBinding\Binding.cs (2)
424[DefaultValue(DataSourceUpdateMode.OnValidation)] 425public DataSourceUpdateMode DataSourceUpdateMode { get; set; } = DataSourceUpdateMode.OnValidation;
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (1)
223public DataSourceUpdateMode DefaultDataSourceUpdateMode { get; set; } = DataSourceUpdateMode.OnValidation;
System.Windows.Forms.Tests (13)
System\Windows\Forms\BindingTests.cs (10)
32Assert.Equal(DataSourceUpdateMode.OnValidation, binding.DataSourceUpdateMode); 61Assert.Equal(DataSourceUpdateMode.OnValidation, binding.DataSourceUpdateMode); 72yield return new object[] { null, null, null, true, DataSourceUpdateMode.OnValidation }; 73yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1 }; 101yield return new object[] { null, null, null, true, DataSourceUpdateMode.OnValidation, null }; 102yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value }; 130yield return new object[] { null, null, null, true, DataSourceUpdateMode.OnValidation, null, null }; 131yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty }; 159yield return new object[] { null, null, null, true, DataSourceUpdateMode.OnValidation, null, null, null }; 160yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty, CultureInfo.CurrentCulture };
System\Windows\Forms\ControlBindingsCollectionTests.cs (3)
29Assert.Equal(DataSourceUpdateMode.OnValidation, collection.DefaultDataSourceUpdateMode); 132Assert.Equal(DataSourceUpdateMode.OnValidation, binding.DataSourceUpdateMode); 149Assert.Equal(DataSourceUpdateMode.OnValidation, binding.DataSourceUpdateMode);