Ejemplo n.º 1
0
 private void FileDownload(DownloadInformation information)
 {
     using (WebClient webClient = new WebClient())
     {
         webClient.DownloadFileAsync(new Uri(information.Url), information.To);
     }
 }
Ejemplo n.º 2
0
        public DownloadFile()
        {
            InitializeComponent();

            DownloadInformation download = new DownloadInformation
            {
                Url = urlTextBox.Text,
                To  = toTextBox.Text
            };
        }