VpwRinseStep.cs 1.2 KB

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