public static Agil_Xpath LoadFromURL(string url)
 {
     Agil_Xpath item = new Agil_Xpath();
     HtmlWeb webget = new HtmlWeb();
     item.m_document = webget.Load(url);
     return item;
 }
 public static Agil_Xpath LoadFromString(string html)
 {
     Agil_Xpath item = new Agil_Xpath();
     item.m_document.LoadHtml(html);
     return item;
 }
        private void openFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();
            openFile.ShowDialog();

            if (openFile.FileName == string.Empty)
                return;

            m_html = Agil_Xpath.LoadFromFile(openFile.FileName);
            webBrowser1.DocumentText = m_html.getHtml();
            textBox1.Text = m_html.getHtml();
        }
 public static Agil_Xpath LoadFromFile(string path)
 {
     Agil_Xpath item = new Agil_Xpath();
     item.m_document.Load(path);
     return item;
 }
 private void loadIntoAgilityToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string html = webBrowser1.Document.Body.Parent.OuterHtml;
     //m_html = Agil_Xpath.LoadFromString(webBrowser1.DocumentText);
     m_html = Agil_Xpath.LoadFromString(html);
 }