From 59da4ec2434e51b3f04ee001e652478bba48dcc7 Mon Sep 17 00:00:00 2001 From: wenjy Date: Wed, 31 Jan 2024 17:06:51 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20MainWindowViewModel=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs index a15ed91..9b71883 100644 --- a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs @@ -21,7 +21,6 @@ namespace SlnMesnac.WPF.ViewModel public class MainWindowViewModel: ViewModelBase { private readonly ILogger _logger; - private readonly RfidPool _rfidPool; #region 参数定义 /// /// PLC设备状态 @@ -87,7 +86,6 @@ namespace SlnMesnac.WPF.ViewModel { _logger = App.ServiceProvider.GetService>(); - _rfidPool = App.ServiceProvider.GetService(); ControlOnClickCommand = new RelayCommand(obj => ControlOnClick(obj)); FormControlCommand = new RelayCommand(x => FormControl(x)); @@ -127,8 +125,6 @@ namespace SlnMesnac.WPF.ViewModel // 最小化当前窗口 case "Minimized": - var info = _rfidPool.GetRfidByKey("test2"); - info.TimePeriodRead(); Application.Current.MainWindow.WindowState = WindowState.Minimized; break; default: