private void DownloadButton_Click(object sender, EventArgs e)
 {
     try
     {
         InitializeDownloader(urlTextBox.Text);
         //This is the initial call of the downloader UC.
         //I have made it so there is no other way to hack into adding a new download from the client
         downloaderUC.AddDownload(urlTextBox.Text, DestinationTextBox.Text, UsernameTextBox.Text, passwordTextBox.Text);
     }
     catch (Exception ex)
     {
         SetErrorMessage(ex.Message);
     }
 }
Example #2
0
 private void AddDownload(VFile item)
 {
     _downloader.AddDownload(GetDownloadURL(item.name), item.name, _savePath + item.name, item.hash, item.len);
 }