automapper框架优化
This commit is contained in:
71
UIShare/UIViewModel/CanMessageShowVM.cs
Normal file
71
UIShare/UIViewModel/CanMessageShowVM.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
namespace UIShare.UIViewModel
|
||||
{
|
||||
public class CanMessageShowVM : BindableBase
|
||||
{
|
||||
// 字段声明
|
||||
private byte _通道;
|
||||
private int _报文ID;
|
||||
private ulong _时间戳;
|
||||
private byte _长度;
|
||||
private bool _fd;
|
||||
private bool _isTx;
|
||||
private byte[] _bytes = new byte[64];
|
||||
private string _报文;
|
||||
|
||||
// 通道属性
|
||||
public byte 通道
|
||||
{
|
||||
get { return _通道; }
|
||||
set { SetProperty(ref _通道, value); }
|
||||
}
|
||||
|
||||
// 报文ID属性
|
||||
public int 报文ID
|
||||
{
|
||||
get { return _报文ID; }
|
||||
set { SetProperty(ref _报文ID, value); }
|
||||
}
|
||||
|
||||
// 时间戳属性
|
||||
public ulong 时间戳
|
||||
{
|
||||
get { return _时间戳; }
|
||||
set { SetProperty(ref _时间戳, value); }
|
||||
}
|
||||
|
||||
// 长度属性
|
||||
public byte 长度
|
||||
{
|
||||
get { return _长度; }
|
||||
set { SetProperty(ref _长度, value); }
|
||||
}
|
||||
|
||||
// FD属性
|
||||
public bool FD
|
||||
{
|
||||
get { return _fd; }
|
||||
set { SetProperty(ref _fd, value); }
|
||||
}
|
||||
|
||||
// IsTx属性
|
||||
public bool IsTx
|
||||
{
|
||||
get { return _isTx; }
|
||||
set { SetProperty(ref _isTx, value); }
|
||||
}
|
||||
|
||||
// Bytes属性
|
||||
public byte[] Bytes
|
||||
{
|
||||
get { return _bytes; }
|
||||
set { SetProperty(ref _bytes, value); }
|
||||
}
|
||||
|
||||
// 报文属性
|
||||
public string 报文
|
||||
{
|
||||
get { return _报文; }
|
||||
set { SetProperty(ref _报文, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user