Exemplo n.º 1
0
 public SerialPortStringSender()
 {
     InitializeComponent();
     serialConnection = new SerialConnection();
     serialConnection.SerialPortStateChangedEvent += serialPortStateChanged;
     closeButton.Enabled             = false;
     sendStringTextBox.Multiline     = true;
     sendStringTextBox.AcceptsTab    = true;
     sendStringTextBox.AcceptsReturn = false;
     this.AcceptButton = sendButton;
 }
Exemplo n.º 2
0
 public SerialPortStringSender()
 {
     InitializeComponent();
     serialConnection = new SerialConnection();
     serialConnection.SerialPortStateChangedEvent += serialPortStateChanged;
     closeButton.Enabled = false;
     sendStringTextBox.Multiline = true;
     sendStringTextBox.AcceptsTab = true;
     sendStringTextBox.AcceptsReturn = false;
     this.AcceptButton = sendButton;
 }