SPortModel.cs 581 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MV485.model
  7. {
  8. public class SPortModel
  9. {
  10. public string PortName { get; set; }
  11. public string DeviceName { get; set; }
  12. public string ModelName => $"{PortName} {DeviceName}";
  13. public SPortModel()
  14. {
  15. }
  16. public SPortModel(string portName,string deviceName)
  17. {
  18. PortName = portName;
  19. DeviceName = deviceName;
  20. }
  21. //--------------------------
  22. }
  23. }