private void FileOpen(object sender, FileAddedEventArgs e) { foreach (string file in e.Files) { ListViewItem item = lvFiles.Items.Add(Path.GetFileName(file)); item.Tag = file; } if (e.Files.Count > 0) { OpenDocument(e.Files[0]); } }