Пример #1
0
        private void openContainingFolderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Download download = GetSelectedDownload();

            if ((download != null) && download.CanOpenDownloadedFile())
            {
                download.OpenDownloadedFileFolder();
            }
        }
Пример #2
0
        private void downloadCollectionDataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex != 1)
            {
                return;
            }

            Download download = GetSelectedDownload();

            if ((download != null) && download.CanOpenDownloadedFile())
            {
                download.OpenDownloadedFile();
            }
        }
Пример #3
0
        private void downloadsContextMenuStrip_Opening(object sender, CancelEventArgs e)
        {
            Download download = GetSelectedDownload();

            if (download != null)
            {
                openContainingFolderToolStripMenuItem.Enabled = download.CanOpenDownloadedFile();
                cancelDownloadToolStripMenuItem.Enabled       = download.IsDownloading;
                removeEntryToolStripMenuItem.Enabled          = !download.IsDownloading;
            }
            else
            {
                e.Cancel = true;
            }
        }