資源簡介
代碼片段和文件信息
using?System;
using?System.Windows;
using?System.Windows.Threading;
using?System.IO;
using?System.Reflection;
using?System.Resources;
namespace?OfIllness
{
????///?
????///?App.xaml?的交互邏輯
????///?
????public?partial?class?App?:?Application
????{
????????public?App()
????????{
????????????AppDomain.CurrentDomain.UnhandledException?+=?new?UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
????????????DispatcherUnhandledException?+=?new?DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException);
????????????
????????}
????????void?App_DispatcherUnhandledException(object?sender?DispatcherUnhandledExceptionEventArgs?e)
????????{
????????????ShowException(e.Exception);
????????}
????????void?CurrentDomain_UnhandledEx
評論
共有 條評論