public FileInfo(File filedetails, IAppContext appContext) : this(filedetails) { Size = filedetails.size; Modified = filedetails.lastmodified; MimeType = filedetails.mimetype; SecondLabel = filedetails.tagline; var file = filedetails.AsMediaDetailsBase; if (file != null) { Images = new VideoImages(appContext, file); } var media = filedetails.AsMediaDetailsBase; if (media != null) { Images = new VideoImages(appContext, media); } Play = new PlayFileCommand(appContext, Path); }
private void OnPlayFile(PlayFileCommand message) { Play(message.File); }