From 71b8bca86d8c7578a89d346aa809c29aacb30e48 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 11 May 2022 21:12:18 -0600 Subject: [PATCH] Revert "Revert "Changes for dockable process"" This reverts commit 6d6434b4d424dbbb6a5ed7fc601df92152e4768b. --- Source/LibationWinForms/grid/ProductsGrid.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/LibationWinForms/grid/ProductsGrid.cs b/Source/LibationWinForms/grid/ProductsGrid.cs index 21a1165f..1f32af6c 100644 --- a/Source/LibationWinForms/grid/ProductsGrid.cs +++ b/Source/LibationWinForms/grid/ProductsGrid.cs @@ -36,6 +36,7 @@ namespace LibationWinForms public partial class ProductsGrid : UserControl { + internal event EventHandler LiberateClicked; /// Number of visible rows has changed public event EventHandler VisibleCountChanged; @@ -123,7 +124,7 @@ namespace LibationWinForms displayWindow.Show(this); } - private static async Task Liberate_Click(GridEntry liveGridEntry) + private async Task Liberate_Click(GridEntry liveGridEntry) { var libraryBook = liveGridEntry.LibraryBook; @@ -270,6 +271,9 @@ namespace LibationWinForms .Select(row => ((GridEntry)row.DataBoundItem).LibraryBook) .ToList(); + internal IEnumerable AllEntries + => bindingList; + private GridEntry getGridEntry(int rowIndex) => _dataGridView.GetBoundItem(rowIndex); #region Column Customizations