20211124_ZNZT_upperpc/MonitoringTechnology/ViewModels/SystemOperationViewModel.cs

134 lines
2.9 KiB
C#
Raw Normal View History

2023-02-03 00:31:48 +00:00
using MonitoringTechnology.Ble;
using MonitoringTechnology.Common;
using MonitoringTechnology.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MonitoringTechnology.ViewModels
{
/// <summary>
/// 系统操作
/// </summary>
public class SystemOperationViewModel : ObservableObject
{
#region
private BleDevice _bleDevice;
private string _txDataHex = "AABBCC112233";
public BleDevice BleDevice
{
get => _bleDevice;
set => Set(ref _bleDevice, value);
}
public string DeviceName
{
get => _bleDevice?.Name;
}
public string DeviceAddress
{
get => _bleDevice?.Mac;
}
public string TxDataHex
{
get => _txDataHex;
set => Set(ref _txDataHex, value);
}
public bool connectionstation;
public bool connectionStation
{
get => connectionstation;
set => Set(ref connectionstation, value);
}
/// <summary>
/// 连接设备
/// </summary>
public string _connectDevice;
public string connectDevice
{
get => _connectDevice;
set => Set(ref _connectDevice, value);
}
/// <summary>
/// 版本查询
/// </summary>
public string _versionQueryData;
public string VersionQueryData
{
get => _versionQueryData;
set => Set(ref _versionQueryData, value);
}
/// <summary>
/// 文件选择
/// </summary>
public string _fileSelectionData;
public string FileSelectionData
{
get => _fileSelectionData;
set => Set(ref _fileSelectionData, value);
}
/// <summary>
/// 百分比进度
/// </summary>
public int _progressValue;
public int ProgressValue
{
get => _progressValue;
set => Set(ref _progressValue, value);
}
2023-03-17 07:06:36 +00:00
/// <summary>
/// 起始日期
/// </summary>
public DateTime _startDate = DateTime.Now;
public DateTime StartDate
{
get => _startDate;
set => Set(ref _startDate, value);
}
/// <summary>
/// 结束日期
/// </summary>
public DateTime _endDate = DateTime.Now;
public DateTime EndDate
{
get => _endDate;
set => Set(ref _endDate, value);
}
/// <summary>
/// 擦除区域
/// </summary>
public string _eraseArea;
public string EraseArea
{
get => _eraseArea;
set => Set(ref _eraseArea, value);
}
2023-02-03 00:31:48 +00:00
#endregion
}
}