Example #1
0
        private void _Get_SearchList(object sender, NavigationEventArgs e)
        {
            var Doc = PixivBrowser.Document as HTMLDocument;
            var ElementCollection = Doc.getElementsByTagName("li");

            PixivBrowser.LoadCompleted -= _Get_SearchList;
            foreach (IHTMLElement Element in ElementCollection)
            {
                //var ChildrenCollection = Element.children as HTMLElementCollection;

                if (Element.className != "image-item ")
                {
                    continue;
                }
                dynamic ChildrenCollection = Element.children;

                foreach (IHTMLElement ChildrenElement in ChildrenCollection)
                {
                    if (ChildrenElement.className == "work  _work ")
                    {
                        //PixivBrowser.Navigate(ChildrenElement.getAttribute("href"));
                        Thread T = new Thread(new ParameterizedThreadStart(Get_Image));
                        T.Start(ChildrenElement.getAttribute("href"));
                        break;
                    }
                }
                break;
            }
        }