示例#1
0
 public ComicFileVM(ComicFile comicFile)
 {
     this.ComicFile           = comicFile;
     this.ComicFile.Available = true;
     this.ComicFile.CoverPath = $"{Helpers.Constants.CoversCachePath}{comicFile.Key}.jpg";
     this.ComicFile.CachePath = $"{Helpers.Constants.FilesCachePath}{comicFile.Key}";
     this.Set(comicFile);
     this._CoverPath = Helpers.Constants.DefaultCover;
     this._CachePath = string.Empty;
 }
示例#2
0
        internal void Set(ComicFile comicFile)
        {
            this.ComicFile.Readed         = comicFile.Readed;
            this.ComicFile.Rating         = comicFile.Rating;
            this.ComicFile.ReadingDate    = comicFile.ReadingDate;
            this.ComicFile.ReadingPage    = comicFile.ReadingPage;
            this.ComicFile.ReadingPercent = comicFile.ReadingPercent;

            this._Readed         = comicFile.Readed;
            this._Rating         = comicFile.Rating;
            this._ReadingDate    = comicFile.ReadingDate;
            this._ReadingPage    = comicFile.ReadingPage;
            this._ReadingPercent = comicFile.ReadingPercent;
        }