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

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