mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-28 20:03:17 -04:00
Move ProcessBookViewModel logic into LiationUiBase
This commit is contained in:
16
Source/LibationWinForms/ProcessQueue/ProcessBookViewModel.cs
Normal file
16
Source/LibationWinForms/ProcessQueue/ProcessBookViewModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using DataLayer;
|
||||
using LibationFileManager;
|
||||
using LibationUiBase;
|
||||
using LibationUiBase.ProcessQueue;
|
||||
|
||||
namespace LibationWinForms.ProcessQueue;
|
||||
|
||||
public class ProcessBookViewModel : ProcessBookViewModelBase
|
||||
{
|
||||
public ProcessBookViewModel(LibraryBook libraryBook, LogMe logme) : base(libraryBook, logme) { }
|
||||
|
||||
protected override object LoadImageFromBytes(byte[] bytes, PictureSize pictureSize)
|
||||
=> WinFormsUtil.TryLoadImageOrDefault(bytes, PictureSize._80x80);
|
||||
|
||||
public string BookText => $"{Title}\r\nBy {Author}\r\nNarrated by {Narrator}";
|
||||
}
|
||||
Reference in New Issue
Block a user