51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
namespace UIShare.UIViewModel
|
||
{
|
||
public class CanMessageShowVM : BindableBase
|
||
{
|
||
// 字段声明
|
||
private byte _通道;
|
||
private int _报文ID;
|
||
private double _时间戳;
|
||
private byte _长度;
|
||
private string _数据;
|
||
|
||
|
||
// 通道属性
|
||
public byte 通道
|
||
{
|
||
get { return _通道; }
|
||
set { SetProperty(ref _通道, value); }
|
||
}
|
||
|
||
// 报文ID属性
|
||
public int 报文ID
|
||
{
|
||
get { return _报文ID; }
|
||
set { SetProperty(ref _报文ID, value); }
|
||
}
|
||
|
||
// 时间戳属性
|
||
public double 时间戳
|
||
{
|
||
get { return _时间戳; }
|
||
set { SetProperty(ref _时间戳, value); }
|
||
}
|
||
|
||
// 长度属性
|
||
public byte 长度
|
||
{
|
||
get { return _长度; }
|
||
set { SetProperty(ref _长度, value); }
|
||
}
|
||
|
||
// 数据属性(原始报文字节十六进制字符串,如 [0x00, 0x01, ...])
|
||
public string 数据
|
||
{
|
||
get { return _数据; }
|
||
set { SetProperty(ref _数据, value); }
|
||
}
|
||
|
||
|
||
}
|
||
}
|