private void toolStripMenuItemOpenFolder_Click(object sender, EventArgs e) { // item unselected, so ignore if (listView.SelectedItems.Count == 0) { return; } VideoItemFileInfo videoItemFileInfo = (VideoItemFileInfo)listView.SelectedItems[0].Tag; string directory = videoItemFileInfo.videoInfo.videoDirectory; MyFile.OpenDirectory(directory); }
private void toolStripMenuItemOpenFolder_Click(object sender, EventArgs e) { // item unselected, so ignore if (listView.SelectedItems.Count == 0) { return; } // grab first one ListViewItem selectedItem = listView.SelectedItems[0]; VideoInfo videoInfo = (VideoInfo)selectedItem.Tag; MyFile.OpenDirectory(videoInfo.videoDirectory); }
private void toolStripMenuItemOpenFolder_Click(object sender, EventArgs e) { // item unselected, so ignore if (listViewSyncUp.SelectedItems.Count == 0) { return; } FileInfo fileInfo = (FileInfo)listViewSyncUp.SelectedItems[0].Tag; if (fileInfo == null) { return; } string directory = fileInfo.DirectoryName; MyFile.OpenDirectory(directory); }