Example #1
0
 public FileViewModel(File f)
 {
     Title = f.Title;
     //Logo = TODO
     FileName = f.FileName;
     PublicationDate = f.Date;
 }
Example #2
0
        public FileViewModel(File f, bool use_services)
        {
            Title = f.Title;
            //Logo = TODO
            PublicationDate = f.Date;

            Logo = ThumbnailService.GetThumbnailUrl(f, Properties.Settings.Default.ImageThumbnailWidth, Properties.Settings.Default.ImageThumbnailHeight);
            FileName = ThumbnailService.GetRawFile(f);
        }