-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.xaml.cs
36 lines (30 loc) · 1020 Bytes
/
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
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Threading;
using Dofus.Retro.Supertools.Controls;
//using Keytrap.Theme.Controls;
namespace Dofus.Retro.Supertools
{
public partial class App
{
private void GrdDragForm_MouseDown(object sender, MouseButtonEventArgs e)
{
if (Window.GetWindow(sender as Grid) is Window window)
if (e.ChangedButton == MouseButton.Left)
window.DragMove();
}
private void BtnClose_Click(object sender, RoutedEventArgs e)
{
if (Window.GetWindow(sender as WindowControlButton) is Window window)
window.Close();
}
private void BtnMinimize_OnClick(object sender, RoutedEventArgs e)
{
if (Window.GetWindow(sender as WindowControlButton) is Window window)
window.WindowState = WindowState.Minimized;
}
}
}