private void RefreshPorts() { AvailablePorts.Clear(); foreach (var c in _comms.ListCommPorts()) { AvailablePorts.Add(c); } }