Example #1
0
 //SongsList
 private void LoadSongsList()
 {
     if (radioAll.Checked)
     {
         songs = SqliteDataAccess.GetSongs();
     }
     else if (radioSearchYear.Checked)
     {
         songs = SqliteDataAccess.GetSongsbyYear(textYear.Text);
     }
     else if (radioArtistFilter.Checked)
     {
         songs = SqliteDataAccess.GetSongs(listDisplayArtists.SelectedValue.ToString());
     }
     else if (radioSearch.Checked)
     {
         songs = SqliteDataAccess.SearchSongs(textSearch.Text);
     }
     WireUpSongsList();
 }
Example #2
0
 private void buttonDisplayAll_Click(object sender, EventArgs e)
 {
     songs = SqliteDataAccess.GetSongs();
     WireUpSongsList();
 }