MatchCurrent
This commit is contained in:
parent
71b8bca86d
commit
d5ba405de0
@ -518,7 +518,8 @@ namespace LibationWinForms
|
||||
#region Visible Books menu
|
||||
private void configVisibleBooksMenu()
|
||||
{
|
||||
productsGrid.VisibleCountChanged += (_, qty) => {
|
||||
productsGrid.VisibleCountChanged += (_, qty) =>
|
||||
{
|
||||
visibleBooksToolStripMenuItem.Text = string.Format(visibleBooksToolStripMenuItem_format, qty);
|
||||
visibleBooksToolStripMenuItem.Enabled = qty > 0;
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@ using LibationWinForms.Dialogs;
|
||||
|
||||
namespace LibationWinForms
|
||||
{
|
||||
|
||||
#region // legacy instructions to update data_grid_view
|
||||
// INSTRUCTIONS TO UPDATE DATA_GRID_VIEW
|
||||
// - delete current DataGridView
|
||||
@ -36,7 +37,6 @@ namespace LibationWinForms
|
||||
|
||||
public partial class ProductsGrid : UserControl
|
||||
{
|
||||
internal event EventHandler<GridEntry> LiberateClicked;
|
||||
/// <summary>Number of visible rows has changed</summary>
|
||||
public event EventHandler<int> VisibleCountChanged;
|
||||
|
||||
@ -124,7 +124,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;
|
||||
|
||||
@ -271,9 +271,6 @@ namespace LibationWinForms
|
||||
.Select(row => ((GridEntry)row.DataBoundItem).LibraryBook)
|
||||
.ToList();
|
||||
|
||||
internal IEnumerable<GridEntry> AllEntries
|
||||
=> bindingList;
|
||||
|
||||
private GridEntry getGridEntry(int rowIndex) => _dataGridView.GetBoundItem<GridEntry>(rowIndex);
|
||||
|
||||
#region Column Customizations
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user