|
- using BPASmartClient.CustomResource.Pages.Model;
- using BPASmartClient.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
-
- namespace BPASmartClient.CustomResource.Pages.View
- {
- /// <summary>
- /// NfcSetView.xaml 的交互逻辑
- /// </summary>
- public partial class NfcSetView : Window
- {
- public NfcSetView()
- {
- InitializeComponent();
- this.Closing += NfcSetView_Closing;
- ActionManage.GetInstance.Register(new Action(() =>
- {
- Application.Current.Dispatcher.Invoke(new Action(() => { this.Close(); }));
- NfcServer.GetInstance.EnableLogin = false;
-
- }), "Exit", true);
- }
-
- private void NfcSetView_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
- {
- NfcServer.GetInstance.EnableLogin = false;
- }
-
- private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- this.Close();
- }
-
- }
- }
|