Esempio n. 1
0
        private async void SynchronizationContext_UnhandledException(object sender, WinRTExceptions.UnhandledExceptionEventArgs e)
        {
            e.Handled = true;

            await new MessageDialog("Synchronization Context Unhandled Exception:\r\n" + e.Exception.Message)
            .ShowAsync();
        }
Esempio n. 2
0
 private void OnSynchronizationContextUnhandledException(object sender, WinRTExceptions.UnhandledExceptionEventArgs args)
 {
     args.Handled = true;
     Helper.ShowMessage("未处理错误:" + args.Exception.ToString(), "出错了");
 }