/// <summary> /// Downloads the Document for a particular URL /// </summary> private void DoDownload(IProgressHost progressHost) { if (_downloader == null) { _downloader = new WebPageDownloader(_parentControl); } // Configure the downloader, hook its complete event and start the download _downloader.Title = _title; _downloader.Url = CleanUrl(_url); _downloader.ExecuteScripts = _permitScriptExecution; _downloader.CookieString = CookieString; _downloader.PostData = _postData; _downloader.DownloadComplete += new EventHandler(downloader_DownloadComplete); _downloader.DownloadFromUrl(progressHost); }
/// <summary> /// Downloads the Document for a particular URL /// </summary> private void DoDownload(IProgressHost progressHost) { if (_downloader == null) _downloader = new WebPageDownloader(_parentControl); // Configure the downloader, hook its complete event and start the download _downloader.Title = _title; _downloader.Url = CleanUrl(_url); _downloader.ExecuteScripts = _permitScriptExecution; _downloader.CookieString = CookieString; _downloader.PostData = _postData; _downloader.DownloadComplete += new EventHandler(downloader_DownloadComplete); _downloader.DownloadFromUrl(progressHost); }