public Form1() { InitializeComponent(); comManager = new ComManager(); foreach (string serialPort in comManager.getSerialPorts()) { cbSerialPorts.Items.Add(serialPort); } if (cbSerialPorts.Items.Count > 0) cbSerialPorts.SelectedIndex = 0; connected = false; updateGui(); }
public Form1() { InitializeComponent(); comManager = new ComManager(); foreach (string serialPort in comManager.getSerialPorts()) { cbSerialPorts.Items.Add(serialPort); } if (cbSerialPorts.Items.Count > 0) { cbSerialPorts.SelectedIndex = 0; } connected = false; updateGui(); }