'visible books' only enabled when applicable

This commit is contained in:
Robert McRackan 2022-05-11 21:47:48 -04:00
parent e0248c2d8e
commit 00df6da366
4 changed files with 84 additions and 66 deletions

View file

@ -36,8 +36,7 @@ namespace LibationWinForms
public partial class ProductsGrid : UserControl
{
ImageDisplay imageDisplay;
/// <summary>Number of visible rows has changed</summary>
public event EventHandler<int> VisibleCountChanged;
// alias
@ -81,6 +80,7 @@ namespace LibationWinForms
await Cover_Click(getGridEntry(e.RowIndex));
}
private ImageDisplay imageDisplay;
private async Task Cover_Click(GridEntry liveGridEntry)
{
var picDefinition = new PictureDefinition(liveGridEntry.LibraryBook.Book.PictureLarge, PictureSize.Native);