private void FormCopyTracksToExternalMedium_Load(object sender, EventArgs e) { // Alle externen Laufwerk ermitteln pictureBox.Image = Misc.IconToAlphaBitmap(Images.mp3device); Visible = true; Refresh(); Update(); int count = 1; foreach (string file in filesToCopy) { try { FileInfo fi = new FileInfo(file); ListViewItem item = listViewFiles.Items.Add(string.Format("{0}.", count++)); item.Tag = file; item.SubItems.Add(file); item.SubItems.Add(string.Format("{0} KB", (fi.Length + 1023) / 1024)); } catch { } } List <DriveHelper.DiskDrive> diskDrives = DriveHelper.GetAvailableDisks(); string[] drives = System.Environment.GetLogicalDrives(); foreach (DriveHelper.DiskDrive diskDrive in diskDrives) { try { if (diskDrive.InterfaceType == "USB" && diskDrive.Size > 10000000) // 10000000, damit wir keine Floppys anzeigen { comboBoxDrive.Items.Add(new ComboBoxItem(diskDrive)); } } catch { } } if (comboBoxDrive.Items.Count > 0) { comboBoxDrive.SelectedIndex = 0; } else { MessageBox.Show(StringTable.NoExternalMediumFound, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); } UpdateWindowState(); }