Add queue log and improve display styles
This commit is contained in:
parent
3b42b52ff4
commit
a66b7a6eab
8 changed files with 114 additions and 56 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using ReactiveUI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -9,6 +10,8 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||
{
|
||||
public class ProcessQueueViewModel : ViewModelBase
|
||||
{
|
||||
|
||||
public string QueueHeader => "this is a header!";
|
||||
private TrackedQueue2<ProcessBook2> _items = new();
|
||||
public ProcessQueueViewModel() { }
|
||||
public TrackedQueue2<ProcessBook2> Items
|
||||
|
|
@ -17,6 +20,17 @@ namespace LibationWinForms.AvaloniaUI.ViewModels
|
|||
set => this.RaiseAndSetIfChanged(ref _items, value);
|
||||
}
|
||||
|
||||
|
||||
public ObservableCollection<LogEntry> LogEntries { get; } = new();
|
||||
|
||||
public ProcessBook2 SelectedItem { get; set; }
|
||||
}
|
||||
|
||||
public class LogEntry
|
||||
{
|
||||
public DateTime LogDate { get; init; }
|
||||
public string LogDateString => LogDate.ToShortTimeString();
|
||||
public string LogMessage { get; init; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue