forked from kaisellgren/Git-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
31 lines (27 loc) · 785 Bytes
/
Copy pathApp.xaml.cs
File metadata and controls
31 lines (27 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Windows;
namespace GG
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public App()
{
#if !DEBUG
AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException;
Application.Current.DispatcherUnhandledException += NBug.Handler.DispatcherUnhandledException;
#endif
}
protected override void OnStartup(StartupEventArgs e)
{
var mainWindow = new MainWindow
{
DataContext = new MainWindowViewModel()
};
base.MainWindow = mainWindow;
mainWindow.Show();
}
}
}