实现CAN/CANFD/LIN配置导入导出功能 - 从嘉兴分支ea58e033移植

This commit is contained in:
2026-04-03 22:43:10 +08:00
parent 219b7e5829
commit 48514b3162
12 changed files with 1588 additions and 1 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)
{
RefreshConfigList();
}
/// <summary>
/// 初始化写规则下拉框
/// </summary>