You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
849 B
29 lines
849 B
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AIK.Models.HidModels
|
|
{
|
|
public partial class HidDeviceStatus : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private string _deviceStatusText;
|
|
[ObservableProperty]
|
|
private string _deviceStatusColor; // 默认灰色
|
|
[ObservableProperty]
|
|
private string _deviceStatusIcon; // 默认未连接图标
|
|
[ObservableProperty]
|
|
private bool _deviceStatus; // 默认未连接(连接状态)
|
|
|
|
public HidDeviceStatus()
|
|
{
|
|
DeviceStatus = false;
|
|
DeviceStatusText = "未连接";
|
|
DeviceStatusColor = "#FFF44336";
|
|
DeviceStatusIcon = "\uE6f9";
|
|
}
|
|
}
|
|
}
|
|
|