refactor:将所有的ItemViewMdoel的名字删除ViewModel,并将命名空间调整为DMS.WPF.ItemViewModel.

This commit is contained in:
2025-10-06 18:17:56 +08:00
parent 6cff70cd87
commit c85f89db33
72 changed files with 316 additions and 1023 deletions

View File

@@ -0,0 +1,29 @@
using CommunityToolkit.Mvvm.ComponentModel;
using DMS.Core.Models;
namespace DMS.WPF.ItemViewModel;
public class NlogItem : ObservableObject
{
private Nlog _nlog;
public NlogItem()
{
_nlog = new Nlog();
}
public NlogItem(Nlog nlog)
{
_nlog = nlog;
}
public int Id => _nlog.Id;
public string Level => _nlog.Level;
public string ThreadName => _nlog.ThreadName;
public string Callsite => _nlog.Callsite;
public string Message => _nlog.Message;
public string Logger => _nlog.Logger;
public string Exception => _nlog.Exception;
public string StackTrace => _nlog.Exception; // Using Exception as StackTrace since it's not in the Nlog model
public DateTime TimeStamp => _nlog.LogTime;
}