Creation of a notification service

This commit is contained in:
Geoffroy BONNEVILLE
2020-04-22 18:12:28 +02:00
parent 61f5e9df0b
commit a9ed588c9a
18 changed files with 201 additions and 194 deletions

View File

@@ -1,6 +1,7 @@
using Windows.UI.Xaml;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Xaml.Interactivity;
using ModernKeePass.Common;
using ModernKeePass.Application.Common.Interfaces;
namespace ModernKeePass.Actions
{
@@ -26,7 +27,8 @@ namespace ModernKeePass.Actions
public object Execute(object sender, object parameter)
{
ToastNotificationHelper.ShowGenericToast(Title, Message);
var notification = App.Services.GetRequiredService<INotificationService>();
notification.Show(Title, Message);
return null;
}
}