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