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.Device.TemperatureController { public class TemperatureDeviceConfig : NotifiableItem { #region 内部变量 private List _temperatureDevices; #endregion [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Name { get; set; } [XmlAttribute(AttributeName = "BaudRate", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int BaudRate { get; set; } [XmlAttribute(AttributeName = "Parity", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Parity { get; set; } [XmlAttribute(AttributeName = "Data", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int Data { get; set; } [XmlAttribute(AttributeName = "StopBit", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int StopBit { get; set; } [XmlAttribute(AttributeName = "Port", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Port { get; set; } [XmlElement(Type = typeof(TemperatureDevice), ElementName = "Device", IsNullable = false, Form = XmlSchemaForm.Qualified)] public List TemperatureDevices { get { return _temperatureDevices; } set { _temperatureDevices = value; InvokePropertyChanged(nameof(TemperatureDevices)); } } } }