-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappMessageBox.xaml.cs
45 lines (40 loc) · 1.1 KB
/
appMessageBox.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
39
40
41
42
43
44
45
using System.Windows;
using System.Windows.Input;
namespace Wake_On_Lan_Lite
{
/// <summary>
/// Logique d'interaction pour appMessageBox.xaml
/// </summary>
public partial class appMessageBox : Window
{
public appMessageBox()
{
InitializeComponent();
}
//Show asked error message
public void showMsg(string msg)
{
message.Content = msg;
}
//Close the window
private void closeWindow(object sender, RoutedEventArgs e)
{
this.Close();
}
// Can execute
private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
}
// Minimize
private void CommandBinding_Executed_Minimize(object sender, ExecutedRoutedEventArgs e)
{
SystemCommands.MinimizeWindow(this);
}
// Close
private void CommandBinding_Executed_Close(object sender, ExecutedRoutedEventArgs e)
{
SystemCommands.CloseWindow(this);
}
}
}