2025-06-23 13:42:02 +08:00
|
|
|
using CommunityToolkit.Mvvm.Messaging;
|
|
|
|
|
using PMSWPF.Enums;
|
|
|
|
|
using PMSWPF.Message;
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Helper;
|
|
|
|
|
|
|
|
|
|
public class NotificationHelper
|
|
|
|
|
{
|
2025-06-23 17:01:06 +08:00
|
|
|
public static void ShowMessage(string msg, NotificationType notificationType = NotificationType.Info,
|
|
|
|
|
bool isGlobal = false)
|
2025-06-23 13:42:02 +08:00
|
|
|
{
|
|
|
|
|
WeakReferenceMessenger.Default.Send<NotificationMessage>(
|
|
|
|
|
new NotificationMessage(msg, notificationType));
|
|
|
|
|
}
|
|
|
|
|
}
|