Remove references to winforms
This commit is contained in:
parent
ab731a63af
commit
6aa0a1f8b9
12 changed files with 69 additions and 15 deletions
|
|
@ -4,7 +4,6 @@ using Dinah.Core;
|
|||
using Dinah.Core.DataBinding;
|
||||
using Dinah.Core.Drawing;
|
||||
using LibationFileManager;
|
||||
using LibationWinForms.GridView;
|
||||
using ReactiveUI;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||
private Processable NextProcessable() => _currentProcessable = null;
|
||||
private Processable _currentProcessable;
|
||||
private readonly Queue<Func<Processable>> Processes = new();
|
||||
private readonly ProcessQueue.LogMe Logger;
|
||||
private readonly LogMe Logger;
|
||||
|
||||
public ProcessBookViewModel(LibraryBook libraryBook, ProcessQueue.LogMe logme)
|
||||
public ProcessBookViewModel(LibraryBook libraryBook, LogMe logme)
|
||||
{
|
||||
LibraryBook = libraryBook;
|
||||
Logger = logme;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace LibationWinForms.AvaloniaUI.ViewModels
|
||||
{
|
||||
public class ProcessQueueViewModel : ViewModelBase, ProcessQueue.ILogForm
|
||||
public class ProcessQueueViewModel : ViewModelBase, ILogForm
|
||||
{
|
||||
public ObservableCollection<LogEntry> LogEntries { get; } = new();
|
||||
public TrackedQueue<ProcessBookViewModel> Items { get; } = new();
|
||||
|
|
@ -21,13 +21,13 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||
public Task QueueRunner { get; private set; }
|
||||
public bool Running => !QueueRunner?.IsCompleted ?? false;
|
||||
|
||||
private readonly ProcessQueue.LogMe Logger;
|
||||
private readonly LogMe Logger;
|
||||
|
||||
public ProcessQueueViewModel()
|
||||
{
|
||||
Queue.QueuededCountChanged += Queue_QueuededCountChanged;
|
||||
Queue.CompletedCountChanged += Queue_CompletedCountChanged;
|
||||
Logger = ProcessQueue.LogMe.RegisterForm(this);
|
||||
Logger = LogMe.RegisterForm(this);
|
||||
}
|
||||
|
||||
private int _completedCount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue