private void FileDownload(DownloadInformation information) { using (WebClient webClient = new WebClient()) { webClient.DownloadFileAsync(new Uri(information.Url), information.To); } }
public DownloadFile() { InitializeComponent(); DownloadInformation download = new DownloadInformation { Url = urlTextBox.Text, To = toTextBox.Text }; }