Example #1
0
 private static async Task ShowUnhandledExceptionMessage(string title, string message)
 {
     if (!string.IsNullOrEmpty(title) && !string.IsNullOrEmpty(message))
     {
         await MahAppsDialogViewer.ShowMessageStatic(title, message);
     }
 }
Example #2
0
        private void OnUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            LogTo.FatalException("Unhandled exception in application", e.Exception);
#pragma warning disable 4014
            // Fire and forget
            MahAppsDialogViewer.ShowMessageStatic(General.UnhandledException_Title, General.UnhandledException_Message);
#pragma warning restore 4014
            e.Handled = true;
        }