can信号监控曲线添加

This commit is contained in:
hsc
2026-07-10 09:56:59 +08:00
parent 412b56935c
commit 52d486e2b1
7 changed files with 383 additions and 42 deletions

View File

@@ -1,17 +0,0 @@
namespace UIShare.PubEvent
{
/// <summary>
/// DBC 自动加载时找不到文件事件。
/// 参数:(通道号, 文件路径)
/// </summary>
public class DBCFileNotFoundEvent : PubSubEvent<DBCFileNotFoundArgs>
{
}
public class DBCFileNotFoundArgs
{
public int Channel { get; set; }
public string FilePath { get; set; } = string.Empty;
public string Scope { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,17 @@
namespace UIShare.PubEvent
{
/// <summary>
/// DBC 加载完成事件:通知订阅者某个通道的 DBC 已加载,可以刷新信号列表。
/// </summary>
public class DBCLoadedEvent : PubSubEvent<DBCLoadedArgs>
{
}
public class DBCLoadedArgs
{
public uint Channel { get; set; }
public string Scope { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UIShare.PubEvent
{
public class DBCUnloadedEvent : PubSubEvent<DBCUnloadedArgs>
{
}
public class DBCUnloadedArgs
{
public uint Channel { get; set; }
public string Scope { get; set; } = string.Empty;
}
}