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 SenorInfo : INotifyPropertyChanged { /// /// 备 注: /// 默认值: /// public string Sensorid { get; set; } = null!; /// /// 备 注: /// 默认值: /// public string Combineid { get; set; } = null!; /// /// 备 注: /// 默认值: /// public string? Name { get; set; } /// /// 备 注: /// 默认值: /// public decimal? Sensorser { get; set; } /// /// 备 注: /// 默认值: /// public decimal? Sensortypeid { get; set; } /// /// 备 注: /// 默认值: /// public string? Deviceid { get; set; } /// /// 备 注: /// 默认值: /// public decimal? Readinterval { get; set; } private string _readtime; public string Readtime { get { return _readtime; } set { if (_readtime != value) { _readtime = value; OnPropertyChanged(nameof(Readtime)); } } } private string _readdata; public string Readdata { get { return _readdata; } set { if (_readdata != value) { _readdata = value; OnPropertyChanged(nameof(Readdata)); } } } public event PropertyChangedEventHandler? PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }