终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 line
1.4 KiB

  1. using BPASmartClient.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace BPASmart.UserManagement
  18. {
  19. /// <summary>
  20. /// Interaction logic for MainWindow.xaml
  21. /// </summary>
  22. public partial class MainWindow : Window
  23. {
  24. public MainWindow()
  25. {
  26. InitializeComponent();
  27. this.br.MouseLeftButtonDown += (o, e) =>
  28. {
  29. if (e.ClickCount > 1)
  30. {
  31. if (this.WindowState == WindowState.Maximized)
  32. this.WindowState = WindowState.Normal;
  33. else if (this.WindowState == WindowState.Normal)
  34. this.WindowState = WindowState.Maximized;
  35. }
  36. };
  37. }
  38. private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  39. {
  40. this.DragMove();
  41. }
  42. private void Button_Click(object sender, RoutedEventArgs e)
  43. {
  44. this.Close();
  45. }
  46. }
  47. }