repsaj.bots.domoticz.app/App.xaml.cs
/// <summary>
/// Handles exceptions that were thrown but never caught. Should ideally not happen; all code
/// should at least try to handle any exceptions that occur.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Handles exceptions that were thrown but never caught. Should ideally not happen; all code
should at least try to handle any exceptions that occur.
Handles exceptions that were thrown but never caught . Should ideally not happen ; all code should at least try to handle any exceptions that occur .
private void App_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            IDialogService dialogService = ServiceLocator.Current.GetInstance<IDialogService>();
            dialogService.ShowMessageBox("An unexpected error occurred.", "ERROR");
            e.Handled = true;
        }
private void App_UnhandledException ( object sender , UnhandledExceptionEventArgs e ) { IDialogService dialogService = ServiceLocator . Current . GetInstance < IDialogService > ( ) ; dialogService . ShowMessageBox ( " " , " " ) ; e . Handled = true ; }
Handles exceptions that were thrown but never caught.
Handles exceptions that were thrown but never caught .
sender
object
None
e
UnhandledExceptionEventArgs
None