Next iterative step toward replacing live scanning with db state. FilePaths.json => db
This commit is contained in:
parent
5c6bf300c6
commit
75f1d987fc
7 changed files with 85 additions and 14 deletions
|
|
@ -176,7 +176,8 @@ namespace LibationWinForms.BookLiberation
|
|||
downloadDialog.UpdateFilename(destination);
|
||||
downloadDialog.Show();
|
||||
|
||||
new System.Threading.Thread(() => {
|
||||
new System.Threading.Thread(() =>
|
||||
{
|
||||
var downloadFile = new DownloadFile();
|
||||
|
||||
downloadFile.DownloadProgressChanged += (_, progress) => downloadDialog.UIThread(() =>
|
||||
|
|
@ -190,7 +191,9 @@ namespace LibationWinForms.BookLiberation
|
|||
});
|
||||
|
||||
downloadFile.PerformDownloadFileAsync(url, destination).GetAwaiter().GetResult();
|
||||
}).Start();
|
||||
})
|
||||
{ IsBackground = true }
|
||||
.Start();
|
||||
}
|
||||
|
||||
// subscribed to Begin event because a new form should be created+processed+closed on each iteration
|
||||
|
|
|
|||
|
|
@ -9,14 +9,11 @@ namespace LibationWinForms
|
|||
{
|
||||
internal class GridEntry
|
||||
{
|
||||
private LibraryBook libraryBook;
|
||||
private LibraryBook libraryBook { get; }
|
||||
private Book book => libraryBook.Book;
|
||||
|
||||
public Book GetBook() => book;
|
||||
|
||||
// this special case is obvious and ugly
|
||||
public void REPLACE_Library_Book(LibraryBook libraryBook) => this.libraryBook = libraryBook;
|
||||
|
||||
public GridEntry(LibraryBook libraryBook) => this.libraryBook = libraryBook;
|
||||
|
||||
// hide from public fields from Data Source GUI with [Browsable(false)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue