Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (27 sloc) 0.785 kB
fe502fe @kaisellgren Initial commit.
authored
1 using System;
2 using System.Windows;
3
decc87c @kaisellgren Minor modifications.
authored
4 namespace GG
fe502fe @kaisellgren Initial commit.
authored
5 {
6 /// <summary>
7 /// Interaction logic for App.xaml
8 /// </summary>
9 public partial class App : Application
10 {
e8118b6 @kaisellgren Added NBug.
authored
11 public App()
12 {
13 #if !DEBUG
14 AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException;
15 Application.Current.DispatcherUnhandledException += NBug.Handler.DispatcherUnhandledException;
16 #endif
17 }
18
c28de79 @kaisellgren Refactored a lot of code.
authored
19 protected override void OnStartup(StartupEventArgs e)
20 {
33b3b0d @kaisellgren Added global exception handler.
authored
21 var mainWindow = new MainWindow
22 {
23 DataContext = new MainWindowViewModel()
24 };
25
c28de79 @kaisellgren Refactored a lot of code.
authored
26 base.MainWindow = mainWindow;
33b3b0d @kaisellgren Added global exception handler.
authored
27
c28de79 @kaisellgren Refactored a lot of code.
authored
28 mainWindow.Show();
29 }
fe502fe @kaisellgren Initial commit.
authored
30 }
e8118b6 @kaisellgren Added NBug.
authored
31 }
Something went wrong with that request. Please try again.