Ejemplo n.º 1
0
 public void ExecuteDownloadRequests()
 {
     try
     {
         DownloadRequest currentRequest = DownloadRequestQueue.Dequeue();
         if (currentRequest != null)
         {
             m_MainForm.DownloadBrowser.DownloadRequest = currentRequest;
             m_MainForm.DownloadBrowser.Navigate(currentRequest.LINK);
         }
     }
     catch (Exception e)
     {
     }
 }
Ejemplo n.º 2
0
        void DownloadBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            DownloadRequest currentRequest = null;

            try
            {
                HtmlElement eas = m_MainForm.DownloadBrowser.Document.Body;
                currentRequest = m_MainForm.DownloadBrowser.DownloadRequest;
                if (currentRequest != null)
                {
                    currentRequest.Reader.LastLog = eas.InnerText;
                    currentRequest.Reader.Parse();
                }
            }
            catch (Exception ex)
            {
            }
        }