DiPointData.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Runtime.CompilerServices;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace NEIntelligentControl2.Models.WinForms
  9. {
  10. public class DiPointData
  11. {
  12. private string pointName = "";
  13. /// <summary>
  14. /// 测点名称
  15. /// </summary>
  16. public string PointName
  17. {
  18. get { return this.pointName; }
  19. set
  20. {
  21. if (value != this.pointName)
  22. {
  23. pointName = value;
  24. }
  25. }
  26. }
  27. private string tagName = "";
  28. /// <summary>
  29. /// 点名
  30. /// </summary>
  31. public string TagName
  32. {
  33. get { return this.tagName; }
  34. set
  35. {
  36. if (value != this.tagName)
  37. {
  38. tagName = value;
  39. }
  40. }
  41. }
  42. private string pointValue = "0";
  43. /// <summary>
  44. /// 测点值
  45. /// </summary>
  46. public string PointValue
  47. {
  48. get { return this.pointValue; }
  49. set
  50. {
  51. if (value != this.pointValue)
  52. {
  53. pointValue = value;
  54. }
  55. }
  56. }
  57. private string uniformCode = "";
  58. /// <summary>
  59. /// 统一编码
  60. /// </summary>
  61. public string UniformCode
  62. {
  63. get { return this.uniformCode; }
  64. set
  65. {
  66. if (value != this.uniformCode)
  67. {
  68. uniformCode = value;
  69. }
  70. }
  71. }
  72. }
  73. }