-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml.cs
38 lines (35 loc) · 1.02 KB
/
App.xaml.cs
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
34
35
36
37
38
using System.IO;
using System.Windows;
using WindConfig.Model;
namespace WindConfig;
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public App()
{
string Title = Wind.DefaultConfigTitleName;
string ProcessName = string.Empty;
if (File.Exists(Wind.Wind3ProcessName))
{
Title = Wind.Wind3ConfigTitleName;
ProcessName = Wind.Wind3ProcessName;
WindRegistry.WindKey = Wind.Wind3RegistryKeyName;
WindRegistry.Version = Wind.Wind3Version;
}
else if (File.Exists(Wind.Wind4ProcessName))
{
Title = Wind.Wind4ConfigTitleName;
ProcessName = Wind.Wind4ProcessName;
WindRegistry.WindKey = Wind.Wind4RegistryKeyName;
WindRegistry.Version = Wind.Wind4Version;
}
//else
//{
// Current.Shutdown();
//}
MainWindow = new MainWindow(Title, ProcessName);
MainWindow.Show();
}
}