-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml.cs
More file actions
37 lines (32 loc) · 917 Bytes
/
MainWindow.xaml.cs
File metadata and controls
37 lines (32 loc) · 917 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
34
35
36
37
using System.Windows;
using System.Windows.Input;
using VRCSTT.ViewModel;
namespace VRCSTT
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private readonly VRCSTTViewModel vm;
public MainWindow()
{
InitializeComponent();
this.vm = VRCSTTViewModelFactory.GetInstance();
this.DataContext = this.vm;
}
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
this.vm.WindowClosing();
}
private void Border_MouseDown(object sender, MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left)
this.DragMove();
}
private void Closed_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
}
}