public ListChaptersWindow(MangaPlugin plugin, String url)
        {
            InitializeComponent();

            webClient = new WebClient();
            toDL = new List<Chapter>();

            this.plugin = plugin;
            this.url = url;

            webClient.DownloadProgressChanged += webClient_DownloadProgressChanged;
            webClient.DownloadStringCompleted += webClient_DownloadStringCompleted;

            webClient.DownloadStringAsync(new Uri(url));

            toolStripStatusLabel1.Text = "Getting availabe chapters...";
            
        }
Exemplo 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();
        }