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.ResistivityProbe { public class ThorntonDeviceConfig : NotifiableItem { #region 内部变量 private List _thorntonDevices; #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(ThorntonDevice), ElementName = "Device", IsNullable = false, Form = XmlSchemaForm.Qualified)] public List ThorntonDevices { get { return _thorntonDevices; } set { _thorntonDevices = value; InvokePropertyChanged(nameof(ThorntonDevice)); } } } }