using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlnMesnac.WPF.Model { public class RfidInfo : INotifyPropertyChanged { /// /// 备 注: /// 默认值: /// public string Deviceid { get; set; } = null!; /// /// 备 注: /// 默认值: /// public string? Name { get; set; } /// /// 备 注: /// 默认值: /// public string? Connectstr { get; set; } /// /// 备 注: /// 默认值: /// public decimal? Connectmode { get; set; } /// /// 备 注: /// 默认值: /// public string? Devicetype { get; set; } /// /// 备 注:所属汇集软件ID /// 默认值: /// public string? Collectid { get; set; } private string _isOnline ="未连接"; public string IsOnline { get { return _isOnline; } set { if (_isOnline != value) { _isOnline = value; OnPropertyChanged(nameof(IsOnline)); } } } public event PropertyChangedEventHandler? PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }