Add book records dialog

This commit is contained in:
Michael Bucari-Tovo 2023-01-05 17:02:39 -07:00
parent ddd6a3b279
commit 6417aee780
5 changed files with 696 additions and 2 deletions

View file

@ -8,6 +8,7 @@ using ApplicationServices;
using DataLayer;
using Dinah.Core.WindowsDesktop.Forms;
using LibationFileManager;
using LibationWinForms.Dialogs;
namespace LibationWinForms.GridView
{
@ -174,13 +175,18 @@ namespace LibationWinForms.GridView
}
};
var stopLightContextMenu = new ContextMenuStrip();
var bookRecordMenuItem = new ToolStripMenuItem { Text = "View Bookmarks/Clips" };
bookRecordMenuItem.Click += (_, _) => new BookRecordsDialog(entry.LibraryBook).ShowDialog(this);
var stopLightContextMenu = new ContextMenuStrip();
stopLightContextMenu.Items.Add(setDownloadMenuItem);
stopLightContextMenu.Items.Add(setNotDownloadMenuItem);
stopLightContextMenu.Items.Add(removeMenuItem);
stopLightContextMenu.Items.Add(locateFileMenuItem);
stopLightContextMenu.Items.Add(new ToolStripSeparator());
stopLightContextMenu.Items.Add(bookRecordMenuItem);
e.ContextMenuStrip = stopLightContextMenu;
e.ContextMenuStrip = stopLightContextMenu;
}
private GridEntry getGridEntry(int rowIndex) => gridEntryDataGridView.GetBoundItem<GridEntry>(rowIndex);