private void InitializePortList() { var ports = SerialPortManager.GetSerialPortList(); CBox_PortList.BeginUpdate(); { CBox_PortList.Items.AddRange(ports.ToArray()); if (CBox_PortList.Items.Count > 0) { CBox_PortList.SelectedIndex = 0; } } CBox_PortList.EndUpdate(); }