namespace GDNXFD.Alert.Config.Views { using System.Windows; using System.Windows.Input; /// /// Interaction logic for ErrorWindow.xaml /// public partial class ErrorWindow : Window { /// /// Error window /// 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(); } } }