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 { /// /// 系统操作 /// 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); } /// /// 连接设备 /// public string _connectDevice; public string connectDevice { get => _connectDevice; set => Set(ref _connectDevice, value); } /// /// 版本查询 /// public string _versionQueryData; public string VersionQueryData { get => _versionQueryData; set => Set(ref _versionQueryData, value); } /// /// 文件选择 /// public string _fileSelectionData; public string FileSelectionData { get => _fileSelectionData; set => Set(ref _fileSelectionData, value); } /// /// 百分比进度 /// public int _progressValue; public int ProgressValue { get => _progressValue; set => Set(ref _progressValue, value); } /// /// 起始日期 /// public DateTime _startDate = DateTime.Now; public DateTime StartDate { get => _startDate; set => Set(ref _startDate, value); } /// /// 结束日期 /// public DateTime _endDate = DateTime.Now; public DateTime EndDate { get => _endDate; set => Set(ref _endDate, value); } /// /// 擦除区域 /// public string _eraseArea; public string EraseArea { get => _eraseArea; set => Set(ref _eraseArea, value); } #endregion } }