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

CommunicationModel.cs 1.5 KiB

2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. }