private void DetectDevices() { DeviceListView.Items.Clear(); List <VehicleScapeAPI.Device> devices = VehicleScapeInterface.GetDevices(); foreach (VehicleScapeAPI.Device device in devices) { ListViewItem item = DeviceListView.Items.Add(VehicleScapeAPI.DeviceTypeToString(device.deviceType)); item.Tag = new TagMetadata(device.handle, TagMetadata.MetadataType.Device); item.SubItems.Add(device.serialNumber.ToString()); item.SubItems.Add(device.handle.ToString()); } }