private void baudrateNumUpDown_ValueChanged(object sender, EventArgs e) { baudrate = (short)baudrateNumUpDown.Value; }