Пример #1
0
        async void ExecuteRefreshPorts()
        {
            ComPorts.Clear();
            await Task.Delay(1000);

            foreach (var port in SerialPortManager.GetPortsInformation())
            {
                ComPorts.Add(new SerialPort(port));
            }
        }