1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- namespace GDNXFD.Alert.Config.Views
- {
- using System.Windows;
- using System.Windows.Input;
- /// <summary>
- /// Interaction logic for ErrorWindow.xaml
- /// </summary>
- public partial class ErrorWindow : Window
- {
- /// <summary>
- /// Error window
- /// </summary>
- public ErrorWindow()
- {
- InitializeComponent();
- }
- private void MainWindow_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- if (e.ClickCount == 2)
- {
- if (this.WindowState == System.Windows.WindowState.Maximized)
- this.WindowState = System.Windows.WindowState.Normal;
- else
- this.WindowState = System.Windows.WindowState.Maximized;
- }
- this.DragMove();
- }
- private void MinimizeButton(object sender, RoutedEventArgs e)
- {
- this.WindowState = WindowState.Minimized;
- }
- private void MaximizeButton(object sender, RoutedEventArgs e)
- {
- if (WindowState == WindowState.Normal)
- {
- this.WindowState = System.Windows.WindowState.Maximized;
- }
- else
- {
- this.WindowState = System.Windows.WindowState.Normal;
- }
- }
- private void CloseButton(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- }
- }
|