Ejemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="list">An AQueue queue to be downloaded</param>
        public QADDownloader(AQueue list)
        {
            foreach(var v in list)
            {
                listFile.Enqueue(v);
            }

            total = listFile.Count;

            weblcient.DownloadFileCompleted += client_DownloadFileCompleted;
        }
Ejemplo n.º 2
0
        public DownloadWindow(List<Chapter> chapters, MangaPlugin plugin)
        {
            InitializeComponent();

            queue = new AQueue();
            webClient = new WebClient();

            webClient.DownloadStringCompleted += webClient_DownloadStringCompleted;

            this.chapters = chapters;
            this.plugin = plugin;

            currentChapter = 0;

            statusLabel.Text = "Fetching chapter : " + currentChapter.ToString() + "/" + chapters.Count.ToString();
            statusProgressBar.Maximum = chapters.Count;
            loadImages();
        }