/// <summary> /// Transmit a keypress to the board. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void serialTextBox_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = true; if (Control.ModifierKeys == Keys.Control) { UploadFileDialog(); } else { mSerialPort.SendAsync(e.KeyChar); } }
/// <summary> /// Transmit a keypress to the board. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void serialTextBox_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = true; mSerialPort.SendAsync(e.KeyChar); }