private void versionComboBox_SelectedIndexChanged(object sender, EventArgs e) { Properties.Settings.Default.version = versionComboBox.Text; //if (Properties.Settings.Default.version == "3.12" || // Properties.Settings.Default.version == "3.13") //{ // Properties.Settings.Default.baudRate = 38400; // bitsSComboBox.Text = "38400"; //} //else //{ // Properties.Settings.Default.baudRate = 115200; // bitsSComboBox.Text = "115200"; //} mainForm.ChangeVersion(); }
private void versionComboBox_SelectedIndexChanged(object sender, EventArgs e) { Properties.Settings.Default.version = versionComboBox.Text; mainForm.ChangeVersion(); }