private List <string> NewPortInList() { var currentPorts = SerialUtils.GetPortNames(); var newPorts = currentPorts.Except(AvailableSerialPorts).ToList(); // Actualize ports collection AvailableSerialPorts = currentPorts; return(newPorts); }
private void UpdateAvailablePorts() { AvailableSerialPorts = SerialUtils.GetPortNames(); }