using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WPFNotification.Core.Configuration; using WPFNotification.Model; using WPFNotification.Services; namespace DeviceCenter.utils { class NotificationUtil { private static readonly INotificationDialogService notificationService = new NotificationDialogService(); public static void show(string title, string message) { var notificationConfiguration = NotificationConfiguration.DefaultConfiguration; notificationConfiguration.NotificationFlowDirection = NotificationFlowDirection.RightBottom; var newNotification = new Notification() { Title = title, Message = message // ,ImgURL = "pack://application:,,,a/Resources/Images/warning.png" }; notificationService.ShowNotificationWindow(newNotification, notificationConfiguration); } } }