22 references to OnPropertyChanged
DesignSurface (1)
MainForm.cs (1)
367
richTextBox.DataBindings.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.
OnPropertyChanged
));
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
1099
if (DataSourceUpdateMode == DataSourceUpdateMode.
OnPropertyChanged
)
System.Windows.Forms.Tests (20)
System\Windows\Forms\ControlBindingsCollectionTests.cs (20)
160
Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
);
166
Assert.Equal(DataSourceUpdateMode.
OnPropertyChanged
, binding.DataSourceUpdateMode);
177
Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null");
183
Assert.Equal(DataSourceUpdateMode.
OnPropertyChanged
, binding.DataSourceUpdateMode);
194
Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString");
200
Assert.Equal(DataSourceUpdateMode.
OnPropertyChanged
, binding.DataSourceUpdateMode);
211
Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString", CultureInfo.CurrentCulture);
217
Assert.Equal(DataSourceUpdateMode.
OnPropertyChanged
, binding.DataSourceUpdateMode);
230
Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
));
231
Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null"));
232
Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString"));
233
Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString", CultureInfo.CurrentCulture));
244
Assert.Throws<ArgumentException>("PropertyName", () => collection.Add("NoSuchProperty", new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
));
245
Assert.Throws<ArgumentException>("PropertyName", () => collection.Add("NoSuchProperty", new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null"));
246
Assert.Throws<ArgumentException>("PropertyName", () => collection.Add("NoSuchProperty", new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString"));
247
Assert.Throws<ArgumentException>("PropertyName", () => collection.Add("NoSuchProperty", new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString", CultureInfo.CurrentCulture));
261
Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
));
262
Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null"));
263
Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString"));
264
Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.
OnPropertyChanged
, "null", "formatString", CultureInfo.CurrentCulture));