终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

UserConfigView.xaml.cs 1.2 KiB

2 anni fa
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using BPASmartClient.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Shapes;
  15. namespace BPASmartClient.CustomResource.Pages.View
  16. {
  17. /// <summary>
  18. /// UserConfigView.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class UserConfigView : Window
  21. {
  22. public UserConfigView()
  23. {
  24. InitializeComponent();
  25. this.br.MouseLeftButtonDown += (o, e) =>
  26. {
  27. if (e.LeftButton == MouseButtonState.Pressed) this.DragMove();
  28. };
  29. ActionManage.GetInstance.CancelRegister("UserConfigViewConfirm");
  30. ActionManage.GetInstance.CancelRegister("UserConfigViewCancel");
  31. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = true; this.Close(); }), "UserConfigViewConfirm");
  32. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = false; this.Close(); }), "UserConfigViewCancel");
  33. }
  34. }
  35. }