superstar_v2/PrimaryFormParts/GroupSearch/PrimaryForm.GroupSearch.YueYu.cs

29 lines
1.4 KiB
C#
Raw Normal View History

2025-04-07 16:54:10 +08:00
namespace DualScreenDemo
{
public partial class PrimaryForm
{
private void GroupYueYuButton_Click(object sender, EventArgs e)
{
groupGuoYuButton.BackgroundImage = groupGuoYuNormalBackground;
groupTaiYuButton.BackgroundImage = groupTaiYuNormalBackground;
groupYueYuButton.BackgroundImage = groupYueYuActiveBackground;
groupYingWenButton.BackgroundImage = groupYingWenNormalBackground;
groupRiYuButton.BackgroundImage = groupRiYuNormalBackground;
groupHanYuButton.BackgroundImage = groupHanYuNormalBackground;
2025-04-14 14:17:06 +08:00
/*yueYuSongs = allSongs.Where(song => song.Category == "粵語" && (song.ArtistACategory == "團" || song.ArtistBCategory == "團"))
2025-04-07 16:54:10 +08:00
.OrderByDescending(song => song.Plays)
2025-04-14 14:17:06 +08:00
.ToList();*/
2025-04-22 15:25:58 +08:00
2025-06-24 10:35:01 +08:00
string query = "SELECT * FROM song_library_cache WHERE language_name = '粵語' AND (`artistA_category` = '團' OR `artistB_category` = '團') ORDER BY song_counts DESC;";
2025-04-14 14:17:06 +08:00
var yueYuSongs = SearchSongs_Mysql(query);
2025-04-07 16:54:10 +08:00
currentPage = 0;
currentSongList = yueYuSongs;
totalPages = (int)Math.Ceiling((double)yueYuSongs.Count / itemsPerPage);
multiPagePanel.currentPageIndex = 0;
multiPagePanel.LoadSongs(currentSongList);
}
}
}