Questions tagged [ieditableobject]

IEditableObject is an interface in the .NET framework to allow objects to be edited by a user.

IEditableObject is an interface in the .NET framework to allow objects to be edited by a user of your program. When the user is finished with its edits, he can confirm the changes to the object or abort. On abort a backup is restored so the original data gets restored.

17 questions
0
votes
1 answer

How do I make IEditableObject.EndEdit atomic?

If I have an Address class that implements IEditableObject, I might have EndEdit implementation like this: public void EndEdit() { // BeginEdit would have set _editInProgress and save to *Editing fields if (_editInProgress) { …
Jiho Han
  • 1,610
  • 1
  • 19
  • 41
0
votes
2 answers

Why does Linq.Enumerable.Where break my ObservableCollection

Background: I am writing a WPF application, strictly following the MVVM pattern. I have a BaseRepository class as a generic interface for connecting to different databases (EF is not an option), and everything works fine; this is just a technical…
Riegardt Steyn
  • 5,431
  • 2
  • 34
  • 49
1
2