improve notification helper api
MODIFY
WalletWasabi.Gui/Helpers/NotificationHelpers.cs
WalletWasabi.Gui/Helpers/NotificationHelpers.cs
@@ -13,17 +13,22 @@ namespace WalletWasabi.Gui.Helpers
return Locator.Current.GetService<INotificationManager>();
}
- public static void Information (string title, string message)
+ public static void Success (string message, string title = "Success!")
{
- GetNotificationManager().Show(new Notification(title, message, NotificationType.Information));
+ GetNotificationManager().Show(new Notification(title, message, NotificationType.Success));
}
- public static void Warning (string title, string message)
+ public static void Information (string message, string title = "Info!")
{
GetNotificationManager().Show(new Notification(title, message, NotificationType.Warning));
}
- public static void Error(string title, string message)
+ public static void Warning (string message, string title = "Warning!")
+ {
+ GetNotificationManager().Show(new Notification(title, message, NotificationType.Warning));
+ }
+
+ public static void Error(string message, string title = "Error!")
{
GetNotificationManager().Show(new Notification(title, message, NotificationType.Error));
}

improve notification helper api