-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.xaml.cs
37 lines (31 loc) · 941 Bytes
/
MainWindow.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
using System.Windows;
using System.Windows.Input;
namespace Launcher
{
public partial class MainWindow
{
private readonly bool WSE = false;
public MainWindow()
{
InitializeComponent();
}
private void CancelButtonClick(object sender, RoutedEventArgs e)
{
Close();
}
private void PlayButtonClick(object sender, RoutedEventArgs e)
{
var loader = WSE ? new WseLoader() : (ILoader)new WarbandLoader();
loader.LoadGame();
Close();
}
private void MainWindowOnMouseMove(object sender, MouseEventArgs e)
{
if (Mouse.LeftButton == MouseButtonState.Pressed) DragMove();
}
private void ConfigureButtonClick(object sender, RoutedEventArgs e)
{
new ConfigurationWindow().Show();
}
}
}