CAN/LIN 导入和导出功能
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
using AutoMapper;
|
||||
using AutoMapper;
|
||||
using CapMachine.Core;
|
||||
using CapMachine.Model.CANLIN;
|
||||
using CapMachine.Wpf.CanDrive;
|
||||
using CapMachine.Wpf.Dtos;
|
||||
using CapMachine.Wpf.LinDrive;
|
||||
using CapMachine.Wpf.PrismEvent;
|
||||
using CapMachine.Wpf.Services;
|
||||
using Prism.Commands;
|
||||
using Prism.Events;
|
||||
@@ -55,8 +56,6 @@ namespace CapMachine.Wpf.ViewModels
|
||||
|
||||
//MachineDataService = machineDataService;
|
||||
DialogService = dialogService;
|
||||
|
||||
EventAggregator.GetEvent<LogicRuleChangeEvent>().Subscribe(LogicRuleChangeEventCall);
|
||||
EventAggregator.GetEvent<CanLinConfigChangedEvent>().Subscribe(CanLinConfigChangedEventCall);
|
||||
|
||||
//数据波特率
|
||||
@@ -148,12 +147,13 @@ namespace CapMachine.Wpf.ViewModels
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CAN/LIN配置变更事件处理
|
||||
/// CAN/LIN 配置导入后刷新当前页面。
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
/// <param name="msg">事件消息。</param>
|
||||
private void CanLinConfigChangedEventCall(string msg)
|
||||
{
|
||||
RefreshConfigList();
|
||||
InitLoadLinConfigPro();
|
||||
InitWriteRuleCbx();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user