Exemplo n.º 1
0
 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();
         }
     });
 }
Exemplo n.º 2
0
 private void LoadPreImportedPhotos()
 {
     AlbumList.Refresh();
 }