增加公共操作的方法,过热度和过冷度的配置弹窗设置
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using CapMachine.Model;
|
||||
using CapMachine.Wpf.Dtos;
|
||||
using CapMachine.Wpf.PrismEvent;
|
||||
using Prism.Events;
|
||||
using Prism.Mvvm;
|
||||
using Prism.Services.Dialogs;
|
||||
|
||||
namespace CapMachine.Wpf.Services
|
||||
{
|
||||
@@ -10,11 +13,15 @@ namespace CapMachine.Wpf.Services
|
||||
/// </summary>
|
||||
public class ConfigService : BindableBase
|
||||
{
|
||||
public ConfigService()
|
||||
public ConfigService(IEventAggregator eventAggregator, IDialogService dialogService)
|
||||
{
|
||||
CurUserDto = new UserDto();
|
||||
|
||||
|
||||
EventAggregator = eventAggregator;
|
||||
|
||||
DialogService = dialogService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Csv文件锁
|
||||
@@ -98,5 +105,13 @@ namespace CapMachine.Wpf.Services
|
||||
set { _CurUserDto = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
public IEventAggregator EventAggregator { get; }
|
||||
public PPCService PPCService { get; }
|
||||
public IDialogService DialogService { get; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user