New __ARCHITECTURE NOTES.txt incl. MVVM comments

This commit is contained in:
Robert McRackan 2022-05-15 15:13:25 -04:00
parent ff4b2d2ecc
commit d1779726e6
4 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,7 @@ namespace LibationWinForms
{
public abstract class AsyncNotifyPropertyChanged : SynchronizeInvoker, INotifyPropertyChanged
{
// see also notes in Libation/Source/__ARCHITECTURE NOTES.txt :: MVVM
public event PropertyChangedEventHandler PropertyChanged;
// per standard INotifyPropertyChanged pattern:

View file

@ -231,6 +231,7 @@ namespace LibationWinForms
{
var entry = new GridEntry(libraryBook);
entry.Committed += reapplyFilter;
// see also notes in Libation/Source/__ARCHITECTURE NOTES.txt :: MVVM
entry.LibraryBookUpdated += (sender, _) => _dataGridView.InvalidateRow(_dataGridView.GetRowIdOfBoundItem((GridEntry)sender));
return entry;
}