添加了NLog日志,并且配置了写入数据库,修改了Notification通知不使用依赖注入,而是使用Message的方式
This commit is contained in:
15
Message/NotificationMessage.cs
Normal file
15
Message/NotificationMessage.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using CommunityToolkit.Mvvm.Messaging.Messages;
|
||||
using PMSWPF.Enums;
|
||||
|
||||
namespace PMSWPF.Message;
|
||||
|
||||
public class NotificationMessage:ValueChangedMessage<string>
|
||||
{
|
||||
public NotificationType Type { get; set; }
|
||||
public bool IsGlobal { get; set; }
|
||||
public NotificationMessage(string msg,NotificationType type=NotificationType.Info,bool isGlobal=false) : base(msg)
|
||||
{
|
||||
this.Type = type;
|
||||
this.IsGlobal = isGlobal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user