using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XImagingXhandler.XDAL { /// /// 设备状态实体 /// public class DeviceStatusData : INotifyPropertyChanged { private string _DeviceName; private string _DeviceId; private string _VirtualConnectionState; private bool _DeviceStatus; /// /// 设备名称 /// public string DeviceName { get { return _DeviceName; } set { _DeviceName = value; if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("DeviceName")); } } } /// /// 设备ID /// public string DeviceId { get { return _DeviceId; } set { _DeviceId = value; if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("DeviceId")); } } } /// /// 虚拟连接 /// public string VirtualConnectionState { get { return _VirtualConnectionState; } set { _VirtualConnectionState = value; if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("VirtualConnectionState")); } } } /// /// 设备状态 /// public bool DeviceStatus { get { return _DeviceStatus; } set { _DeviceStatus = value; if (this.PropertyChanged != null) { this.PropertyChanged(this, new PropertyChangedEventArgs("DeviceStatus")); } } } // // 摘要: // 属性改变事件对象 public event PropertyChangedEventHandler PropertyChanged; } }