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;

    }
Beispiel #2
0
        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;
        }