Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }