20211124_ZNZT_upperpc/MonitoringTechnology/ViewModels/SystemOperationViewModel.cs
2023-02-03 08:31:48 +08:00

100 lines
2.2 KiB
C#

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);
}
#endregion
}
}