Example #1
0
        private void Init()
        {
            //如果图片数量小于5,则将下载图片线程设置为5个,否则线程数量等于要下载的图片数量
            if (5 > (threadCount = link.LinkCount()))
            {
                threadCount = 5;
            }

            m_ImagesThread = new Thread[threadCount];
        }
Example #2
0
        private int imagesTotal = 0; //图片总数

        private void Reset()
        {
            link = new LinkOperating();
            lblLinkCount.Text = link.LinkCount().ToString();
            IsChange          = false;
            page         = new PageOperating();
            link         = new LinkOperating();
            titleAndLink = new Hashtable();
            generaLink   = new Queue();
            webQueue     = new Queue();
            status       = new LinkStatus();
        }