示例#1
0
 public static void Add(Illustration illustration)
 {
     if (ToDownloadList.All(x => x.Id != illustration.Id))
     {
         ToDownloadList.Add(illustration);
     }
 }
示例#2
0
 public DownloadableIllustration(Illustration downloadContent, bool isFromManga, int mangaIndex = -1)
 {
     DownloadContent = downloadContent;
     IsFromManga     = isFromManga;
     MangaIndex      = mangaIndex;
     GetPath();
 }
 public DownloadableIllustration(Illustration downloadContent, IIllustrationFileNameFormatter fileNameFormatter, IDownloadPathProvider downloadPathProvider, bool isFromManga, int mangaIndex = -1)
 {
     DownloadContent      = downloadContent;
     FileNameFormatter    = fileNameFormatter;
     DownloadPathProvider = downloadPathProvider;
     IsFromManga          = isFromManga;
     MangaIndex           = mangaIndex;
 }
示例#4
0
 public static void Remove(Illustration illustration)
 {
     ToDownloadList.Remove(illustration);
 }
 public DownloadableIllustrationViewModel(Illustration downloadContent, bool isFromManga, int mangaIndex = -1)
 {
     DownloadContent = downloadContent;
     IsFromManga     = isFromManga;
     MangaIndex      = mangaIndex;
 }
示例#6
0
 public DownloadableIllustration(Illustration downloadContent, string path)
 {
     Path            = System.IO.Path.Combine(Directory.CreateDirectory(System.IO.Path.GetDirectoryName(path)).FullName, System.IO.Path.GetFileName(path) !);
     DownloadContent = downloadContent;
 }