2
0
Files
controlmymonitormanagement/Library/ViewModel/XMonitor.cs

67 lines
1.4 KiB
C#
Raw Normal View History

2022-05-23 00:58:58 +08:00
using CMM.Library.Base;
2023-07-03 01:51:09 +08:00
namespace CMM.Library.ViewModel;
public class XMonitor : PropertyBase
2022-05-23 00:58:58 +08:00
{
2023-07-03 01:51:09 +08:00
/// <summary>
/// 裝置路徑
/// </summary>
public string MonitorDeviceName
2022-05-23 00:58:58 +08:00
{
2023-07-03 01:51:09 +08:00
get => _MonitorDeviceName;
set { SetProperty(ref _MonitorDeviceName, value); }
}
string _MonitorDeviceName;
2022-05-23 00:58:58 +08:00
2023-07-03 01:51:09 +08:00
/// <summary>
/// 裝置名稱
/// </summary>
public string MonitorName
{
get => _MonitorName;
set { SetProperty(ref _MonitorName, value); }
}
string _MonitorName;
2022-05-23 00:58:58 +08:00
2023-07-03 01:51:09 +08:00
/// <summary>
/// 裝置序號
/// </summary>
public string SerialNumber
{
get => _SerialNumber;
set { SetProperty(ref _SerialNumber, value); }
}
string _SerialNumber;
2022-05-23 00:58:58 +08:00
2023-07-03 01:51:09 +08:00
/// <summary>
/// 訊號裝置
/// </summary>
public string AdapterName
{
get => _AdapterName;
set { SetProperty(ref _AdapterName, value); }
}
string _AdapterName;
2022-05-23 00:58:58 +08:00
2023-07-03 01:51:09 +08:00
/// <summary>
/// 裝置識別碼
/// </summary>
public string MonitorID
{
get => _MonitorID;
set { SetProperty(ref _MonitorID, value); }
}
string _MonitorID;
2022-05-23 00:58:58 +08:00
2023-07-03 01:51:09 +08:00
/// <summary>
/// 狀態
/// </summary>
public ObservableRangeCollection<XMonitorStatus> Status
{
get => _Status;
set { SetProperty(ref _Status, value); }
2022-05-23 00:58:58 +08:00
}
2023-07-03 01:51:09 +08:00
ObservableRangeCollection<XMonitorStatus> _Status = new();
2022-05-23 00:58:58 +08:00
}