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: