Example #1
0
 private void downloadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DownloadInfo[] di = PlexUtils.getDownloads(selected, this).Select(x => new DownloadInfo(x.getDownloadURL(), PlexUtils.MakeValidFileName(x.downloadFilename), PlexUtils.MakeValidFileName(x.subdir))).ToArray();
     if (PlexUtils.downloadDialog == null || PlexUtils.downloadDialog.IsDisposed)
     {
         PlexUtils.downloadDialog = new DownloadDialog(di);
     }
     else
     {
         PlexUtils.downloadDialog.enqueue(di);
     }
     PlexUtils.downloadDialog.Show();
 }