清理引用,将NavigatorServices更改为使用Message来实现导航的切换
This commit is contained in:
@@ -3,13 +3,15 @@ using PMSWPF.Enums;
|
||||
|
||||
namespace PMSWPF.Message;
|
||||
|
||||
public class NotificationMessage:ValueChangedMessage<string>
|
||||
public class NotificationMessage : ValueChangedMessage<string>
|
||||
{
|
||||
public NotificationMessage(string msg, NotificationType type = NotificationType.Info, bool isGlobal = false) :
|
||||
base(msg)
|
||||
{
|
||||
Type = type;
|
||||
IsGlobal = isGlobal;
|
||||
}
|
||||
|
||||
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