private void LoadAlbums() { DBRequests.MakeRequest(DBRequests.LoadAlbums(), (connection, sqlCommand) => { using (var reader = sqlCommand.ExecuteReader()) { if (reader.HasRows) { while (reader.Read()) { _albums.Add(new TextInstance { Name = reader.GetString(0) }); } } AlbumList.Refresh(); } }); }
private void LoadPreImportedPhotos() { AlbumList.Refresh(); }