Exemplo n.º 1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dl = new NewDownload();

            if (dl.ShowDialog() == DialogResult.OK && dl.DownloadUrl.Length > 0)
            {
                var job = _downloadManager.CreateJob("File Download", JobType.Download);
                job.AddFile(dl.DownloadUrl, MakeDownloadPath(dl.DownloadUrl));
                AddJobFlags(job);
                job.Resume();
                dataGridView1.Rows.Add(MakeRow(job));
            }
        }
Exemplo n.º 2
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var dl = new NewDownload();
     if (dl.ShowDialog() == DialogResult.OK && dl.DownloadUrl.Length > 0)
     {
         var job = _downloadManager.CreateJob("File Download", JobType.Download);
         job.AddFile(dl.DownloadUrl, MakeDownloadPath(dl.DownloadUrl));
         AddJobFlags(job);
         job.Resume();
         dataGridView1.Rows.Add(MakeRow(job));
     }
 }