public void RefeshSerialPort() { ComPort.Clear(); foreach (string searchPort in SerialPort.GetPortNames()) { ComPort.Add(searchPort); } }