diff --git a/Source/LibationWinForms/grid/ProductsGrid.cs b/Source/LibationWinForms/grid/ProductsGrid.cs index 23cea700..21a1165f 100644 --- a/Source/LibationWinForms/grid/ProductsGrid.cs +++ b/Source/LibationWinForms/grid/ProductsGrid.cs @@ -36,9 +36,6 @@ namespace LibationWinForms public partial class ProductsGrid : UserControl { - - internal event EventHandler LiberateClicked; - /// Number of visible rows has changed public event EventHandler VisibleCountChanged; @@ -53,12 +50,12 @@ namespace LibationWinForms _dataGridView.Sorted += Filter; _dataGridView.CellContentClick += DataGridView_CellContentClick; - this.Load += ProductsGrid_Load; + this.Load += ProductsGrid_Load; EnableDoubleBuffering(); } - private void EnableDoubleBuffering() + private void EnableDoubleBuffering() { var propertyInfo = _dataGridView.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); @@ -126,7 +123,7 @@ namespace LibationWinForms displayWindow.Show(this); } - private async Task Liberate_Click(GridEntry liveGridEntry) + private static async Task Liberate_Click(GridEntry liveGridEntry) { var libraryBook = liveGridEntry.LibraryBook; @@ -273,9 +270,6 @@ namespace LibationWinForms .Select(row => ((GridEntry)row.DataBoundItem).LibraryBook) .ToList(); - internal IEnumerable AllEntries - => bindingList; - private GridEntry getGridEntry(int rowIndex) => _dataGridView.GetBoundItem(rowIndex); #region Column Customizations