SRDPersistentValue.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MECF.Framework.Common.CommonData;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Schema;
  8. using System.Xml.Serialization;
  9. namespace MECF.Framework.Common.Persistent.SRD
  10. {
  11. public class SRDPersistentValue : NotifiableItem
  12. {
  13. #region 属性
  14. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  15. public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } }
  16. public double WellPlacedLowThreshold { get { return _wellPlacedLowThreshold; } set { _wellPlacedLowThreshold = value; InvokePropertyChanged(nameof(WellPlacedLowThreshold)); } }
  17. public double WellPlacedHighThreshold { get { return _wellPlacedHighThreshold; } set { _wellPlacedHighThreshold = value;InvokePropertyChanged(nameof(WellPlacedHighThreshold)); } }
  18. public double EmptyThreshold { get { return _emptyThreshold; } set { _emptyThreshold = value;InvokePropertyChanged(nameof(EmptyThreshold)); } }
  19. public string OperatingMode { get { return _operatingMode; } set { _operatingMode = value; InvokePropertyChanged(nameof(OperatingMode)); } }
  20. public string RecipeOperatingMode { get { return _recipeOperatingMode; } set { _recipeOperatingMode = value; InvokePropertyChanged(nameof(RecipeOperatingMode)); } }
  21. #endregion
  22. #region 内部变量
  23. private string _name;
  24. private double _wellPlacedLowThreshold;
  25. private double _wellPlacedHighThreshold;
  26. private double _emptyThreshold;
  27. private string _operatingMode;
  28. private string _recipeOperatingMode;
  29. #endregion
  30. }
  31. }