ThorntonDevice.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  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.ResistivityProbe
  10. {
  11. public class ThorntonDevice : NotifiableItem
  12. {
  13. #region 内部变量
  14. private string _name;
  15. private bool _isConnected;
  16. private string _resistivity;
  17. #endregion
  18. [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  19. public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } }
  20. [XmlAttribute(AttributeName = "Address", Form = XmlSchemaForm.Unqualified, DataType = "string")]
  21. public string Address { get; set; }
  22. public bool IsConnected { get { return _isConnected; } set { _isConnected = value; InvokePropertyChanged(nameof(IsConnected)); } }
  23. public string ResistivityValue { get { return _resistivity; } set { _resistivity = value;InvokePropertyChanged(nameof(ResistivityValue)); } }
  24. }
  25. }