コード例 #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;
 }
コード例 #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;
 }