public static void Add(Illustration illustration) { if (ToDownloadList.All(x => x.Id != illustration.Id)) { ToDownloadList.Add(illustration); } }
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; }
public static void Remove(Illustration illustration) { ToDownloadList.Remove(illustration); }
public DownloadableIllustrationViewModel(Illustration downloadContent, bool isFromManga, int mangaIndex = -1) { DownloadContent = downloadContent; IsFromManga = isFromManga; MangaIndex = mangaIndex; }
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; }