| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | using MECF.Framework.Common.Beckhoff.AxisProvider;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.LinMot{    public class LinmotDeviceConfig : NotifiableItem    {        private List<LinMotDevice> _linmotDevice;        [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; }               [XmlAttribute(AttributeName = "SendTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]        public int SendTimeout { get; set; }        [XmlAttribute(AttributeName = "RecvTimeout", Form = XmlSchemaForm.Unqualified, DataType = "int")]        public int RecvTimeout { get; set; }        [XmlElement(Type = typeof(LinMotDevice), ElementName = "Device", IsNullable = false, Form = XmlSchemaForm.Qualified)]        public List<LinMotDevice> LinmotDevices { get { return _linmotDevice; } set { _linmotDevice = value; InvokePropertyChanged(nameof(LinmotDevices));}}    }}
 |