post-refactor clean up

This commit is contained in:
Robert McRackan 2022-05-17 07:56:34 -04:00
parent a89b07394f
commit 801e154d15
3 changed files with 3 additions and 13 deletions

View file

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

View file

@ -76,9 +76,6 @@ namespace LibationWinForms
}
#endregion
public event EventHandler LibraryBookUpdated;
public event EventHandler Committed;
// alias
private Book Book => LibraryBook.Book;
@ -125,9 +122,6 @@ namespace LibationWinForms
}
UserDefinedItem.ItemChanged += UserDefinedItem_ItemChanged;
// this will never have a value when triggered by ctor b/c nothing can subscribe to the event until after ctor is complete
LibraryBookUpdated?.Invoke(this, null);
}
private void PictureStorage_PictureCached(object sender, PictureCachedEventArgs e)
@ -189,9 +183,6 @@ namespace LibationWinForms
Book.UserDefinedItem.BookStatus = bookStatus;
Book.UserDefinedItem.PdfStatus = pdfStatus;
LibraryCommands.UpdateUserDefinedItem(Book);
// notify
Committed?.Invoke(this, null);
}
#endregion