Exemplo n.º 1
0
        private async void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox2.SelectedIndex == -1)
            {
                return;
            }
            await parsedPort.CloseAsync();

            parsedPort.PhysicalPort = physicalPorts[comboBox2.SelectedIndex];
            await parsedPort.OpenAsync();

            comboBox1.Enabled = true;
        }