Ejemplo n.º 1
0
        public static void DownloadFile(string desc, string link, string path)
        {
            DownloadForm form = new DownloadForm();

            form.descLabel.Text = desc;
            form.client.DownloadFileAsync(new Uri(link), path);
            form.ShowDialog();
        }
Ejemplo n.º 2
0
        public static string DownloadString(string desc, string link)
        {
            DownloadForm form = new DownloadForm();

            form.descLabel.Text = desc;
            form.client.DownloadStringAsync(new Uri(link));
            form.ShowDialog();
            return(form.result);
        }