TabPageTag.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HslCommunication;
  6. namespace AGV_WPF.Tools
  7. {
  8. public class TabPageTag
  9. {
  10. public TabPageTag()
  11. {
  12. listBtn = new List<System.Windows.Forms.Button>();
  13. table = new System.Data.DataTable();
  14. }
  15. private List<System.Windows.Forms.Button> listBtn;
  16. private int connectType;
  17. public int ConnectType
  18. {
  19. get { return connectType; }
  20. set
  21. {
  22. if (connectType != value)
  23. {
  24. connectType = value;
  25. }
  26. }
  27. }
  28. public List<System.Windows.Forms.Button> ListBtn
  29. {
  30. get { return listBtn; }
  31. set
  32. {
  33. if (listBtn != value)
  34. {
  35. listBtn = value;
  36. }
  37. }
  38. }
  39. private System.Data.DataTable table;
  40. public System.Data.DataTable Table
  41. {
  42. get { return table; }
  43. set
  44. {
  45. if (table != value)
  46. {
  47. table = value;
  48. }
  49. }
  50. }
  51. private HslCommunication.Profinet.Siemens.SiemensS7Net s7;
  52. public HslCommunication.Profinet.Siemens.SiemensS7Net S7
  53. {
  54. get { return s7; }
  55. set
  56. {
  57. if (s7 != value)
  58. {
  59. s7 = value;
  60. }
  61. }
  62. }
  63. private OperateResult result;
  64. public OperateResult Result
  65. {
  66. get { return result; }
  67. set
  68. {
  69. if (result != value)
  70. {
  71. result = value;
  72. }
  73. }
  74. }
  75. private OperateResult plcResult;
  76. public OperateResult PLCResult
  77. {
  78. get { return plcResult; }
  79. set
  80. {
  81. if (plcResult != value)
  82. {
  83. plcResult = value;
  84. }
  85. }
  86. }
  87. private int heartBitCount;
  88. public int HeartBitCount
  89. {
  90. get { return heartBitCount; }
  91. set
  92. {
  93. if (heartBitCount != value)
  94. {
  95. heartBitCount = value;
  96. }
  97. }
  98. }
  99. private int plcHeartBitCount;
  100. public int PLCHeartBitCount
  101. {
  102. get { return plcHeartBitCount; }
  103. set
  104. {
  105. if (plcHeartBitCount != value)
  106. {
  107. plcHeartBitCount = value;
  108. }
  109. }
  110. }
  111. }
  112. }