diff --git a/MangaRipper.Core/DownloadChapterTask.cs b/MangaRipper.Core/DownloadChapterTask.cs index edc3a86..09ecf6f 100644 --- a/MangaRipper.Core/DownloadChapterTask.cs +++ b/MangaRipper.Core/DownloadChapterTask.cs @@ -17,6 +17,16 @@ public class DownloadChapterTask public Chapter Chapter { get; private set; } public string SaveToFolder { get; private set; } public IEnumerable Formats { get; private set; } + + public string PropFormats + { + get + { + var s = Formats.Select(format => format.ToString()).ToList(); + return string.Join(", ", s); + } + } + public bool IsBusy { get; set; } public int Percent { get; set; } public DownloadChapterTask(Chapter chapter, string saveToFolder, IEnumerable formats) diff --git a/MangaRipper/Form/FormMain.Designer.cs b/MangaRipper/Form/FormMain.Designer.cs index d29e5a5..a075880 100644 --- a/MangaRipper/Form/FormMain.Designer.cs +++ b/MangaRipper/Form/FormMain.Designer.cs @@ -66,6 +66,7 @@ private void InitializeComponent() this.ColChapterName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ColChapterStatus = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ColChapterUrl = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Formats = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dgvQueueChapter)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvSupportedSites)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvChapter)).BeginInit(); @@ -153,7 +154,8 @@ private void InitializeComponent() this.dgvQueueChapter.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.ColChapterName, this.ColChapterStatus, - this.ColChapterUrl}); + this.ColChapterUrl, + this.Formats}); this.dgvQueueChapter.Location = new System.Drawing.Point(443, 38); this.dgvQueueChapter.Name = "dgvQueueChapter"; this.dgvQueueChapter.ReadOnly = true; @@ -467,6 +469,13 @@ private void InitializeComponent() this.ColChapterUrl.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.ColChapterUrl.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; // + // Formats + // + this.Formats.DataPropertyName = "PropFormats"; + this.Formats.HeaderText = "Formats"; + this.Formats.Name = "Formats"; + this.Formats.ReadOnly = true; + // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -546,8 +555,10 @@ private void InitializeComponent() private System.Windows.Forms.Label label1; private System.Windows.Forms.CheckBox cbSaveFolder; private System.Windows.Forms.CheckBox cbSaveCbz; + private System.Windows.Forms.DataGridViewTextBoxColumn Output; private System.Windows.Forms.DataGridViewTextBoxColumn ColChapterName; private System.Windows.Forms.DataGridViewTextBoxColumn ColChapterStatus; private System.Windows.Forms.DataGridViewTextBoxColumn ColChapterUrl; + private System.Windows.Forms.DataGridViewTextBoxColumn Formats; } } \ No newline at end of file diff --git a/MangaRipper/Form/FormMain.resx b/MangaRipper/Form/FormMain.resx index c8f729b..0501ab2 100644 --- a/MangaRipper/Form/FormMain.resx +++ b/MangaRipper/Form/FormMain.resx @@ -126,6 +126,9 @@ True + + True + True