SerialPortWithTag.cs 637 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.IO.Ports;
  10. namespace UAS_LabelMachine.CustomControl
  11. {
  12. public partial class SerialPortWithTag : SerialPort
  13. {
  14. private string tag;
  15. public SerialPortWithTag()
  16. {
  17. InitializeComponent();
  18. }
  19. public string Tag
  20. {
  21. get
  22. {
  23. return tag;
  24. }
  25. set
  26. {
  27. tag = value;
  28. }
  29. }
  30. }
  31. }