Ejemplo n.º 1
0
 public ItemProject(SampleDataItem project)
 {
     this.UniqueId = project.UniqueId;
     this.Title = project.Title;
     this.Subtitle = project.Subtitle;
     this.Description = project.Description;
     this.ImagePath = project.ImagePath;
     this.Content = project.Content;
 }
Ejemplo n.º 2
0
        private static async Task <SampleDataGroup> getGroupFromPicturesLibrary()
        {
            var             picfold = KnownFolders.PicturesLibrary;
            SampleDataGroup group   = new SampleDataGroup("1", "unchart", "undescript", "1.png", "the unfiltered list or starting list");

            foreach (StorageFile picfil in await picfold.GetFilesAsync())
            {
                var newfi = await picfil.CopyAsync(ApplicationData.Current.RoamingFolder);

                SampleDataItem rer = new SampleDataItem(newfi.Name,
                                                        newfi.ContentType,
                                                        newfi.DateCreated.ToString(),
                                                        newfi.Path,
                                                        newfi.FileType,
                                                        newfi.FolderRelativeId);

                group.Items.Add(rer);
            }

            return(group);
        }