コード例 #1
0
        private List <string> NewPortInList()
        {
            var currentPorts = SerialUtils.GetPortNames();
            var newPorts     = currentPorts.Except(AvailableSerialPorts).ToList();

            // Actualize ports collection
            AvailableSerialPorts = currentPorts;

            return(newPorts);
        }
コード例 #2
0
 private void UpdateAvailablePorts()
 {
     AvailableSerialPorts = SerialUtils.GetPortNames();
 }