示例#1
0
        static public bool GetTrendingCodes(out List <int> a_TrendingCodes)
        {
            TentaclePage Page = new TentaclePage("https://nhentai.net/");

            Page.Load();
            return(Page.GetTrending(out a_TrendingCodes));
        }
示例#2
0
        public void AddTrendingEntries()
        {
            List <int> TrendingCodes;

            if (!TentaclePage.GetTrendingCodes(out TrendingCodes))
            {
                return;
            }

            m_DownloadProgress     = 0f;
            m_DownloadProgressStep = 100f / 5f;
            foreach (var Code in TrendingCodes)
            {
                AddEntry(Code);
                m_DownloadProgress += m_DownloadProgressStep;
                AdvanceProgress();
            }
        }