| 1234567891011121314151617181920212223242526272829 |
- 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);
- }
- }
- }
|