PlcPoint_Torque.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.Core.PLCs;
  8. namespace TeamAAS_VP.Models.Torque
  9. {
  10. public class PlcPoint_Torque : BindableBase
  11. {
  12. private int _Number;
  13. public int Number
  14. {
  15. get { return _Number; }
  16. set { SetProperty(ref _Number, value); }
  17. }
  18. private string _Label;
  19. public string Label
  20. {
  21. get { return _Label; }
  22. set { SetProperty(ref _Label, value); }
  23. }
  24. private float _X_Position;
  25. public float X_Position
  26. {
  27. get { return _X_Position; }
  28. set { SetProperty(ref _X_Position, value); }
  29. }
  30. private float _Y_Position;
  31. public float Y_Position
  32. {
  33. get { return _Y_Position; }
  34. set { SetProperty(ref _Y_Position, value); }
  35. }
  36. private float _Z_Position_Start;
  37. public float Z_Position_Start
  38. {
  39. get { return _Z_Position_Start; }
  40. set { SetProperty(ref _Z_Position_Start, value); }
  41. }
  42. private float _Z_Position_Stop;
  43. public float Z_Position_Stop
  44. {
  45. get { return _Z_Position_Stop; }
  46. set { SetProperty(ref _Z_Position_Stop, value); }
  47. }
  48. public PlcPoint_Torque()
  49. {
  50. Number = 0;
  51. X_Position = 0;
  52. Y_Position = 0;
  53. Z_Position_Start = 0;
  54. Z_Position_Stop = 0;
  55. }
  56. public PlcPoint_Torque Clone()
  57. {
  58. return new PlcPoint_Torque
  59. {
  60. Number = this.Number,
  61. Label = this.Label,
  62. X_Position = this.X_Position,
  63. Y_Position = this.Y_Position,
  64. Z_Position_Start = this.Z_Position_Start,
  65. Z_Position_Stop = this.Z_Position_Stop,
  66. };
  67. }
  68. }
  69. }