终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

49 行
1.5 KiB

  1. using Microsoft.Toolkit.Mvvm.Input;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmart.Model
  10. {
  11. public class CommunicationModel : NoticeBase
  12. {
  13. /// <summary>
  14. /// 通讯设备
  15. /// </summary>
  16. [JsonProperty(TypeNameHandling = TypeNameHandling.Auto)]
  17. public ICommunicationDevice CommDevice { get { return _mCommDevice; } set { _mCommDevice = value; OnPropertyChanged(); } }
  18. private ICommunicationDevice _mCommDevice;
  19. /// <summary>
  20. /// 是否激活
  21. /// </summary>
  22. public bool IsActive { get { return _mIsActive; } set { _mIsActive = value; OnPropertyChanged(); } }
  23. private bool _mIsActive = true;
  24. /// <summary>
  25. /// 新增设备名称
  26. /// </summary>
  27. public string DeviceName { get { return _mDeviceName; } set { _mDeviceName = value; OnPropertyChanged(); } }
  28. private string _mDeviceName;
  29. /// <summary>
  30. /// 通讯模块名称
  31. /// </summary>
  32. public string ModelName { get { return _mModelName; } set { _mModelName = value; OnPropertyChanged(); } }
  33. private string _mModelName;
  34. /// <summary>
  35. /// 变量表数据
  36. /// </summary>
  37. public ObservableCollection<VariableInfo> VarTableModels { get; set; } = new ObservableCollection<VariableInfo>();
  38. }
  39. }