Example #1
0
        private void RetrieveWebDocumentsHandler(BuddyAction sender, BuddyAction.RetrieveWebDocumentsEventArgs e)
        {
            List<string> queries = e.queries;
            //List<string> documents = new List<string>();
            foreach(string query in queries)
            {
                WebBrowser browser = new WebBrowser();
                browser.Navigate(query);
                //browser.DocumentCompleted += ForwardDocumentToAction;
                //string html = browser.Document.ActiveElement.InnerHtml;
                //documents.Add(html);
            }

            //sender.ReceiveHTMLData(documents);
        }
Example #2
0
 private void ForwardDocumentToAction(object sender, BuddyAction.RetrieveWebDocumentsEventArgs e)
 {
 }
Example #3
0
 private void ActionCompletedHandler(BuddyAction sender, BuddyAction.ActionCompletedEventArgs e)
 {
     NotifyListeners(e.message);
 }
Example #4
0
 private void RetrieveWebDocumentsHandler(BuddyAction sender, BuddyAction.RetrieveWebDocumentsEventArgs e)
 {
     RetrieveWebDocuments(sender, e);
 }
Example #5
0
 public void RetrieveDocuments(BuddyAction sender, RetrieveWebDocumentsEventArgs args)
 {
     RetrieveWebDocuments(sender, args);
 }
Example #6
0
 public void NotifyActionCompleted(BuddyAction sender, ActionCompletedEventArgs e)
 {
     ActionCompleted(sender, e);
 }