PlcInfo.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using TeamAAS_VP.Enums;
  8. namespace TeamAAS_VP.Models
  9. {
  10. public class PlcInfo : BindableBase
  11. {
  12. private Guid _Id;
  13. public Guid Id
  14. {
  15. get { return _Id; }
  16. set { SetProperty(ref _Id, value); }
  17. }
  18. private int _Index;
  19. public int Index
  20. {
  21. get { return _Index; }
  22. set { SetProperty(ref _Index, value); }
  23. }
  24. private int _PlcNo;
  25. /// <summary>
  26. /// 编号
  27. /// </summary>
  28. public int PlcNo
  29. {
  30. get { return _PlcNo; }
  31. set { SetProperty(ref _PlcNo, value); }
  32. }
  33. private string _Name;
  34. public string Name
  35. {
  36. get { return _Name; }
  37. set { SetProperty(ref _Name, value); }
  38. }
  39. private CommunicationType _CommunicationType;
  40. public CommunicationType CommunicationType
  41. {
  42. get { return _CommunicationType; }
  43. set { SetProperty(ref _CommunicationType, value); }
  44. }
  45. private string _EndpointUrl;
  46. public string EndpointUrl
  47. {
  48. get { return _EndpointUrl; }
  49. set { SetProperty(ref _EndpointUrl, value); }
  50. }
  51. private string _NodeHeader= "ns=4;s=";
  52. public string NodeHeader
  53. {
  54. get { return _NodeHeader; }
  55. set { SetProperty(ref _NodeHeader, value); }
  56. }
  57. }
  58. }