private void runLoadThread(IEnumerable <Website> wl) { BlogDownloader instance = BlogDownloader.GetInstance(); instance.Websites.Clear(); foreach (Website website in wl) { if (!website.Viewchecked) { continue; } instance.Websites.Add(website); } instance.Start(); }
public MainWindow() { this.InitializeComponent(); this.importSettingsToolStripMenuItem.Visible = false; MainWindow.Instance = this; this.DatagridCells(); this.btnStop.Visible = false; this.unlockTumblRipperToolStripMenuItem.Visible = false; ToolStripNumberControl str = this.toolStripNumberControl1; int maxConcurrentDownloads = Downloader.GetInstance().MaxConcurrentDownloads; str.Text = maxConcurrentDownloads.ToString(CultureInfo.InvariantCulture); if (TumblRipper2.classes.Settings.GetSettings().Licence == "free") { this.toolStripNumberControl1.Text = "1"; this.toolStripNumberControl1.Visible = false; this.toolStripLabel1.Visible = false; this.Text = string.Concat(this.Text, " freeware"); this.unlockTumblRipperToolStripMenuItem.Visible = true; } BlogDownloader.GetInstance().DownloadStatusChange += new BlogDownloader.DownloadStatusChangeHandler(this.MainWindow_DownloadStatusChange); }
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { BlogDownloader.GetInstance().Stop(); TumblRipper2.classes.Settings.GetSettings().SaveSettings(); }
private void btnStop_Click(object sender, EventArgs e) { BlogDownloader.GetInstance().Stop(); }