You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.9 KiB
C#
85 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Data;
|
|
|
|
namespace HuizhongLibrary.Data
|
|
{
|
|
/// <summary>
|
|
/// 数据传送
|
|
/// </summary>
|
|
/// <typeparam name="T">泛型</typeparam>
|
|
public class DataEventArgs<T>:EventArgs
|
|
{
|
|
private int m_ID;
|
|
public int ID
|
|
{
|
|
get { return m_ID; }
|
|
set { m_ID = value; }
|
|
}
|
|
private string m_DeviceNo;
|
|
public string DeviceNo
|
|
{
|
|
get { return m_DeviceNo; }
|
|
set { m_DeviceNo = value; }
|
|
}
|
|
private string m_Name;
|
|
public string Name
|
|
{
|
|
get { return m_Name; }
|
|
set { m_Name = value; }
|
|
}
|
|
private T m_Data;
|
|
/// <summary>
|
|
/// 返回数据
|
|
/// </summary>
|
|
public T Data
|
|
{
|
|
get { return m_Data; }
|
|
set { m_Data = value; }
|
|
|
|
}
|
|
|
|
private string m_TypeName;
|
|
/// <summary>
|
|
/// 出错地点
|
|
/// </summary>
|
|
public string TypeName
|
|
{
|
|
get { return m_TypeName; }
|
|
set { m_TypeName = value; }
|
|
}
|
|
private string m_StackTrace;
|
|
/// <summary>
|
|
/// 出错对象信息
|
|
/// </summary>
|
|
public string StackTrace
|
|
{
|
|
get { return m_StackTrace; }
|
|
set { m_StackTrace = value; }
|
|
}
|
|
private string m_ErrorMsg;
|
|
/// <summary>
|
|
/// 出错信息
|
|
/// </summary>
|
|
public string ErrorMsg
|
|
{
|
|
get { return m_ErrorMsg; }
|
|
set { m_ErrorMsg = value; }
|
|
}
|
|
private bool m_IsError = false;
|
|
/// <summary>
|
|
/// 是否发生错误
|
|
/// </summary>
|
|
public bool IsError
|
|
{
|
|
get { return m_IsError; }
|
|
set { m_IsError = value; }
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|