From 2dc73acd20401369a19dc1705e0ed2fc9ad538e4 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 17 May 2022 09:53:23 -0400 Subject: [PATCH] Bug fix: incomplete refresh --- Source/LibationWinForms/grid/GridEntry.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/LibationWinForms/grid/GridEntry.cs b/Source/LibationWinForms/grid/GridEntry.cs index 6ea63d2b..3e02dc93 100644 --- a/Source/LibationWinForms/grid/GridEntry.cs +++ b/Source/LibationWinForms/grid/GridEntry.cs @@ -76,9 +76,6 @@ namespace LibationWinForms } #endregion - public event EventHandler LibraryBookUpdated; - public event EventHandler Committed; - // alias private Book Book => LibraryBook.Book; @@ -90,6 +87,8 @@ namespace LibationWinForms throw new Exception("Invalid grid entry update. IDs must match"); setLibraryBook(libraryBook); + + NotifyPropertyChanged(); } private void setLibraryBook(LibraryBook libraryBook) @@ -125,9 +124,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 +185,6 @@ namespace LibationWinForms Book.UserDefinedItem.BookStatus = bookStatus; Book.UserDefinedItem.PdfStatus = pdfStatus; LibraryCommands.UpdateUserDefinedItem(Book); - - // notify - Committed?.Invoke(this, null); } #endregion