导入和导出的功能

This commit is contained in:
2026-05-08 15:48:49 +08:00
parent a8c5cda332
commit 0be171ee32
18 changed files with 3039 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ namespace CapMachine.Wpf.ViewModels
DialogService = dialogService;
EventAggregator.GetEvent<LogicRuleChangeEvent>().Subscribe(LogicRuleChangeEventCall);
EventAggregator.GetEvent<CanLinConfigChangedEvent>().Subscribe(CanLinConfigChangedEventCall);
//数据波特率
DataBaudRateCbxItems = new ObservableCollection<CbxItems>()
@@ -150,6 +151,15 @@ namespace CapMachine.Wpf.ViewModels
//InitWriteRuleCbx();
}
/// <summary>
/// CAN/LIN 配置更改事件(导入后刷新数据)。
/// </summary>
/// <param name="msg"></param>
private void CanLinConfigChangedEventCall(string msg)
{
InitLoadCanConfigPro();
}
/// <summary>
/// 初始化写规则下拉框
/// </summary>