public static bool ShowConfirmationMBox(string message) => NotificationDialog .ShowNotification( "Block chain based invoice management system", message, SystemIcons.Exclamation, "Yes", "No") == true;
public static void ShowInfoMBox(string message) => Application .Current .Dispatcher .Invoke(() => NotificationDialog .ShowNotification( "Block chain based invoice management system", message, SystemIcons.Information));
public static bool?ShowNotification( string title, string message, Icon icon, string positiveButtonText = "Ok", string negativeButtonText = null) { var dialog = new NotificationDialog(message, GetIcon(icon), positiveButtonText, negativeButtonText) { Title = title }; return(dialog.ShowDialog()); }