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

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

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