using MECF.Framework.Common.CommonData; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Schema; using System.Xml.Serialization; namespace MECF.Framework.Common.Persistent.SRD { public class SRDPersistentValue : NotifiableItem { #region 属性 [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } } public double WellPlacedLowThreshold { get { return _wellPlacedLowThreshold; } set { _wellPlacedLowThreshold = value; InvokePropertyChanged(nameof(WellPlacedLowThreshold)); } } public double WellPlacedHighThreshold { get { return _wellPlacedHighThreshold; } set { _wellPlacedHighThreshold = value;InvokePropertyChanged(nameof(WellPlacedHighThreshold)); } } public double EmptyThreshold { get { return _emptyThreshold; } set { _emptyThreshold = value;InvokePropertyChanged(nameof(EmptyThreshold)); } } public string OperatingMode { get { return _operatingMode; } set { _operatingMode = value; InvokePropertyChanged(nameof(OperatingMode)); } } public string RecipeOperatingMode { get { return _recipeOperatingMode; } set { _recipeOperatingMode = value; InvokePropertyChanged(nameof(RecipeOperatingMode)); } } #endregion #region 内部变量 private string _name; private double _wellPlacedLowThreshold; private double _wellPlacedHighThreshold; private double _emptyThreshold; private string _operatingMode; private string _recipeOperatingMode; #endregion } }