VpwRinseStep.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MECF.Framework.Common.CommonData;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MECF.Framework.Common.RecipeCenter
  9. {
  10. public class VpwRinseStep : NotifiableItem
  11. {
  12. #region 内部变量
  13. private int _durationSeconds;
  14. private int _rotationSpeed;
  15. private int _index;
  16. private int _step;
  17. #endregion
  18. #region 属性
  19. [JsonProperty]
  20. public int DurationSeconds { get { return _durationSeconds; } set { _durationSeconds = value; InvokePropertyChanged(nameof(DurationSeconds)); } }
  21. [JsonProperty]
  22. public int RotationSpeed { get { return _rotationSpeed; } set { _rotationSpeed = value; InvokePropertyChanged(nameof(RotationSpeed)); } }
  23. [JsonProperty]
  24. public int Index { get { return _index; }
  25. set { _index = value;_step = _index + 1; InvokePropertyChanged(nameof(Index)); InvokePropertyChanged(nameof(Step)); } }
  26. [JsonProperty]
  27. public int Step { get { return _step; } set { _step = value; InvokePropertyChanged(nameof(Step)); } }
  28. #endregion
  29. }
  30. }