Skip to content

Commit

Permalink
Add format column to gird to show save as formats
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenDanPhuong committed Dec 5, 2016
1 parent 1f35d57 commit b865c02
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions MangaRipper.Core/DownloadChapterTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ public class DownloadChapterTask
public Chapter Chapter { get; private set; }
public string SaveToFolder { get; private set; }
public IEnumerable<OutputFormat> 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<OutputFormat> formats)
Expand Down
13 changes: 12 additions & 1 deletion MangaRipper/Form/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions MangaRipper/Form/FormMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<metadata name="ColChapterUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Formats.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down

0 comments on commit b865c02

Please sign in to comment.