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.
|
- 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();
- }
-
- /// <summary>
- /// 数据显示格式
- /// </summary>
- public string DataDisplayFormat { get { return _mDataDisplayFormat; } set { _mDataDisplayFormat = value; OnPropertyChanged(); } }
- private string _mDataDisplayFormat;
-
- /// <summary>
- /// 修改值
- /// </summary>
- public string ModifyValue { get { return _mModifyValue; } set { _mModifyValue = value; OnPropertyChanged(); } }
- private string _mModifyValue;
-
- public ObservableCollection<string> DisplayFormat { get; set; } = new ObservableCollection<string>();
-
- private void Init()
- {
- DisplayFormat.Clear();
- foreach (var item in Enum.GetNames(typeof(DisplayFormat)))
- {
- DisplayFormat.Add(item);
- }
- }
-
- }
- }
|