public MainWindow() { InitializeComponent(); //register for unhandled exceptions Application.Current.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(Current_DispatcherUnhandledException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Res11ViewModel resvm = new Res11ViewModel(); DataContext = resvm; }
public MainWindow() { InitializeComponent(); //register for unhandled exceptions Application.Current.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(Current_DispatcherUnhandledException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Res11ViewModel resvm = new Res11ViewModel(); DataContext = resvm; }