PlcInfo.cs 1.6 KB

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