PowerSupplierDevice.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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.Device.PowerSupplier
  10. {
  11. public class PowerSupplierDevice : NotifiableItem
  12. {
  13. #region 内部变量
  14. private string _name;
  15. private string _parentName;
  16. private string _address;
  17. #endregion
  18. #region 属性
  19. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  20. public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } }
  21. public string ParentName { get { return _parentName; } set { _parentName = value; InvokePropertyChanged(nameof(ParentName)); } }
  22. [XmlAttribute(AttributeName = "Address", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  23. public string Address { get { return _address;} set { _address = value; InvokePropertyChanged(nameof(Address)); } }
  24. #endregion
  25. }
  26. }