void PortRefreshPressed(object sender, EventArgs e) { string[] ports = SerialPort.GetPortNames(); _portDropdown.AddOnlyAll(ports); }