//public Storage(string[] Albumname) //{ // settingStore = new JsonStore<Settings>(dbPath: HttpRuntime.AppDomainAppPath); // albumStore = new JsonStore<Albums>(dbPath: HttpRuntime.AppDomainAppPath); // AlbumList.AddRange(Albumname); //} void Refresh() { var store = new BiggyList<Albums>(albumStore); List<Albums> albumContent = new List<Albums>(); var drive = new GoogleDrive(); if (AlbumList.Count > 0) { for (int i = 0; i < AlbumList.Count; i++) { string AlbumId = drive.GetFolderID(AlbumList[i]); var contents = drive.ListFolderContent(AlbumId); foreach (var image in contents) { Albums album = new Albums(); album.Id = image.Id; album.Title = image.Title; album.AlbumName = AlbumList[i]; album.ThumbnailLink = image.ThumbnailLink; album.DownloadURL = image.DownloadUrl; albumContent.Add(album); } } store.Add(albumContent); } }