namespace DualScreenDemo
{
    public partial class PrimaryForm
    {        
        private void TalentShowButton_Click(object sender, EventArgs e)
        {
            loveDuetButton.BackgroundImage = loveDuetNormalBackground;
            talentShowButton.BackgroundImage = talentShowActiveBackground;
            medleyDanceButton.BackgroundImage = medleyDanceNormalBackground;
            ninetiesButton.BackgroundImage = ninetiesNormalBackground;
            nostalgicSongsButton.BackgroundImage = nostalgicSongsNormalBackground;
            chinaSongsButton.BackgroundImage = chinaNormalBackground;
            

            /*talentShowSongs = allSongs.Where(song => song.SongGenre.Contains("B1"))
                                .OrderByDescending(song => song.Plays) 
                                .ToList();*/
            string query = SetQueryforSQL("B1"); // Set the query for SQL to filter by genre "F1"
            var talentShowSongs = SearchSongs_Mysql(query);   
            currentPage = 0; 
            currentSongList = talentShowSongs; 
            totalPages = (int)Math.Ceiling((double)talentShowSongs.Count / itemsPerPage);

            multiPagePanel.currentPageIndex = 0;
            multiPagePanel.LoadSongs(currentSongList);
        }
    }
}