comments
This commit is contained in:
parent
9a4903f0dd
commit
8969c216af
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\DtoImporterService\DtoImporterService.csproj" />
|
<ProjectReference Include="..\DtoImporterService\DtoImporterService.csproj" />
|
||||||
<ProjectReference Include="..\InternalUtilities\InternalUtilities.csproj" />
|
|
||||||
<ProjectReference Include="..\LibationSearchEngine\LibationSearchEngine.csproj" />
|
<ProjectReference Include="..\LibationSearchEngine\LibationSearchEngine.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@ -178,8 +178,6 @@ namespace ApplicationServices
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
// below are queries, not commands. maybe I should make a LibraryQueries. except there's already one of those...
|
|
||||||
|
|
||||||
public static LiberatedStatus Liberated_Status(Book book)
|
public static LiberatedStatus Liberated_Status(Book book)
|
||||||
=> book.Audio_Exists ? LiberatedStatus.Liberated
|
=> book.Audio_Exists ? LiberatedStatus.Liberated
|
||||||
: FileManager.AudibleFileStorage.AaxcExists(book.AudibleProductId) ? LiberatedStatus.PartialDownload
|
: FileManager.AudibleFileStorage.AaxcExists(book.AudibleProductId) ? LiberatedStatus.PartialDownload
|
||||||
@ -190,6 +188,8 @@ namespace ApplicationServices
|
|||||||
: book.PDF_Exists ? LiberatedStatus.Liberated
|
: book.PDF_Exists ? LiberatedStatus.Liberated
|
||||||
: LiberatedStatus.NotLiberated;
|
: LiberatedStatus.NotLiberated;
|
||||||
|
|
||||||
|
// below are queries, not commands. maybe I should make a LibraryQueries. except there's already one of those...
|
||||||
|
|
||||||
public record LibraryStats(int booksFullyBackedUp, int booksDownloadedOnly, int booksNoProgress, int pdfsDownloaded, int pdfsNotDownloaded) { }
|
public record LibraryStats(int booksFullyBackedUp, int booksDownloadedOnly, int booksNoProgress, int pdfsDownloaded, int pdfsNotDownloaded) { }
|
||||||
public static LibraryStats GetCounts()
|
public static LibraryStats GetCounts()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -177,6 +177,7 @@ namespace LibationWinForms
|
|||||||
get => string.Join("\r\n", Book.UserDefinedItem.TagsEnumerated);
|
get => string.Join("\r\n", Book.UserDefinedItem.TagsEnumerated);
|
||||||
set => Book.UserDefinedItem.Tags = value;
|
set => Book.UserDefinedItem.Tags = value;
|
||||||
}
|
}
|
||||||
|
// these 2 values being in 1 field is the trick behind getting the liberated+pdf 'stoplight' icon to draw. See: LiberateDataGridViewImageButtonCell.Paint
|
||||||
public (LiberatedStatus BookStatus, LiberatedStatus? PdfStatus) Liberate
|
public (LiberatedStatus BookStatus, LiberatedStatus? PdfStatus) Liberate
|
||||||
{
|
{
|
||||||
get => (LibraryCommands.Liberated_Status(LibraryBook.Book), LibraryCommands.Pdf_Status(LibraryBook.Book));
|
get => (LibraryCommands.Liberated_Status(LibraryBook.Book), LibraryCommands.Pdf_Status(LibraryBook.Book));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user