using System; using System.Collections.Generic; using System.Text; using System.Data; namespace HuizhongLibrary.Data { /// /// 数据传送 /// /// 泛型 public class DataEventArgs: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; /// /// 返回数据 /// public T Data { get { return m_Data; } set { m_Data = value; } } private string m_TypeName; /// /// 出错地点 /// public string TypeName { get { return m_TypeName; } set { m_TypeName = value; } } private string m_StackTrace; /// /// 出错对象信息 /// public string StackTrace { get { return m_StackTrace; } set { m_StackTrace = value; } } private string m_ErrorMsg; /// /// 出错信息 /// public string ErrorMsg { get { return m_ErrorMsg; } set { m_ErrorMsg = value; } } private bool m_IsError = false; /// /// 是否发生错误 /// public bool IsError { get { return m_IsError; } set { m_IsError = value; } } } }