终端一体化运控平台
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.

VarMonitorPropInfo.cs 1.2 KiB

преди 2 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using BPASmart.VariableManager.Enums;
  8. using Microsoft.Toolkit.Mvvm.ComponentModel;
  9. namespace BPASmart.VariableManager.Models
  10. {
  11. internal class VarMonitorPropInfo : VariableInfo
  12. {
  13. public VarMonitorPropInfo()
  14. {
  15. Init();
  16. }
  17. /// <summary>
  18. /// 数据显示格式
  19. /// </summary>
  20. public string DataDisplayFormat { get { return _mDataDisplayFormat; } set { _mDataDisplayFormat = value; OnPropertyChanged(); } }
  21. private string _mDataDisplayFormat;
  22. /// <summary>
  23. /// 修改值
  24. /// </summary>
  25. public string ModifyValue { get { return _mModifyValue; } set { _mModifyValue = value; OnPropertyChanged(); } }
  26. private string _mModifyValue;
  27. public ObservableCollection<string> DisplayFormat { get; set; } = new ObservableCollection<string>();
  28. private void Init()
  29. {
  30. DisplayFormat.Clear();
  31. foreach (var item in Enum.GetNames(typeof(DisplayFormat)))
  32. {
  33. DisplayFormat.Add(item);
  34. }
  35. }
  36. }
  37. }