终端一体化运控平台
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.
 
 
 

48 lines
1.3 KiB

  1. using BPASmartClient.CustomResource.Pages.Model;
  2. using BPASmartClient.Helper;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  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.Shapes;
  16. namespace BPASmartClient.CustomResource.Pages.View
  17. {
  18. /// <summary>
  19. /// NfcSetView.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class NfcSetView : Window
  22. {
  23. public NfcSetView()
  24. {
  25. InitializeComponent();
  26. this.Closing += NfcSetView_Closing;
  27. ActionManage.GetInstance.Register(new Action(() =>
  28. {
  29. Application.Current.Dispatcher.Invoke(new Action(() => { this.Close(); }));
  30. NfcServer.GetInstance.EnableLogin = false;
  31. }), "Exit", true);
  32. }
  33. private void NfcSetView_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
  34. {
  35. NfcServer.GetInstance.EnableLogin = false;
  36. }
  37. private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  38. {
  39. this.Close();
  40. }
  41. }
  42. }