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