导入和导出的功能
This commit is contained in:
@@ -3,6 +3,7 @@ using CapMachine.Core;
|
||||
using CapMachine.Model.CANLIN;
|
||||
using CapMachine.Wpf.Dtos;
|
||||
using CapMachine.Wpf.LinDrive;
|
||||
using CapMachine.Wpf.PrismEvent;
|
||||
using CapMachine.Wpf.Services;
|
||||
using CapMachine.Wpf.Views;
|
||||
using ImTools;
|
||||
@@ -47,6 +48,8 @@ namespace CapMachine.Wpf.ViewModels
|
||||
LogicRuleService = logicRuleService;
|
||||
Mapper = mapper;
|
||||
|
||||
EventAggregator.GetEvent<CanLinConfigChangedEvent>().Subscribe(CanLinConfigChangedEventCall);
|
||||
|
||||
InitLoadLinConfigPro();
|
||||
}
|
||||
|
||||
@@ -984,6 +987,15 @@ namespace CapMachine.Wpf.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CAN/LIN 配置更改事件(导入后刷新数据)。
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
private void CanLinConfigChangedEventCall(string msg)
|
||||
{
|
||||
InitLoadLinConfigPro();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 克隆读写配置 DTO。
|
||||
/// 说明:打开弹窗前先克隆一份,避免用户在弹窗中编辑时直接影响主界面集合(取消时也不会污染当前 UI 状态)。
|
||||
|
||||
Reference in New Issue
Block a user