-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
33 lines (29 loc) · 767 Bytes
/
App.xaml.cs
File metadata and controls
33 lines (29 loc) · 767 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
32
33
using System.Globalization;
using System.Threading;
using System.Windows;
namespace ScriptCommander
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public Settings AppSettings { get; private set; }
public App()
{
this.Startup += App_Startup;
this.Exit += App_Exit;
}
void App_Startup(object sender, StartupEventArgs e)
{
var s = new Settings();
AppSettings = s;
var c = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = c;
}
void App_Exit(object sender, ExitEventArgs e)
{
AppSettings.Save();
}
}
}