CounterFlowData.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MECF.Framework.Common.CommonData
  7. {
  8. public class CounterFlowData : NotifiableItem
  9. {
  10. #region 内部变量
  11. private bool _start;
  12. private bool _stop;
  13. private uint _reset;
  14. private double _conterValue;
  15. private int _period;
  16. private string _status="Unkown";
  17. #endregion
  18. #region 属性
  19. public bool Start { get { return _start; } set { _start = value; InvokePropertyChanged(nameof(Start)); } }
  20. public bool Stop { get { return _stop; } set { _stop = value; InvokePropertyChanged(nameof(Stop)); } }
  21. public uint Reset { get { return _reset; } set { _reset = value; InvokePropertyChanged(nameof(Reset)); } }
  22. public int Period { get { return _period; } set { _period = value; InvokePropertyChanged(nameof(Period)); } }
  23. /// <summary>
  24. /// 流量计数(L/Min)
  25. /// </summary>
  26. public double CounterValue { get { return _conterValue; } set { _conterValue = value; InvokePropertyChanged(nameof(CounterValue)); } }
  27. public string Status { get { return _status; } set { _status = value; InvokePropertyChanged(nameof(Status)); } }
  28. #endregion
  29. }
  30. }