using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using BPASmart.VariableManager.Enums; using Microsoft.Toolkit.Mvvm.ComponentModel; namespace BPASmart.VariableManager.Models { internal class VarMonitorPropInfo : VariableInfo { public VarMonitorPropInfo() { Init(); } /// /// 数据显示格式 /// public string DataDisplayFormat { get { return _mDataDisplayFormat; } set { _mDataDisplayFormat = value; OnPropertyChanged(); } } private string _mDataDisplayFormat; /// /// 修改值 /// public string ModifyValue { get { return _mModifyValue; } set { _mModifyValue = value; OnPropertyChanged(); } } private string _mModifyValue; public ObservableCollection DisplayFormat { get; set; } = new ObservableCollection(); private void Init() { DisplayFormat.Clear(); foreach (var item in Enum.GetNames(typeof(DisplayFormat))) { DisplayFormat.Add(item); } } } }