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(); }
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); }