superstar_v2/PrimaryFormParts/HotSong/PrimaryForm.HotSongTaiwaneseNew.cs
jasonchenwork 7a1db74896 202508041108
闗包帳 不卡歌
全筆數改為1000 筆
2025-08-04 11:08:40 +08:00

22 lines
765 B
C#

namespace DualScreenDemo
{
public partial class PrimaryForm
{
private void TaiYuNewSongButtonHotSong_Click(object sender, EventArgs e)
{
// 重置其他按钮背景
UpdateHotSongButtons(taiYuNewSongButtonHotSong, taiYuNewSongHotSongActiveBackground);
string query = $"SELECT * FROM song_library_cache WHERE language_name = '台語' ORDER BY `add_date` DESC, `song_counts` DESC LIMIT 1000;";
var selectedSongs = SearchSongs_Mysql(query);
currentPage = 0;
totalPages = (int)Math.Ceiling((double)selectedSongs.Count / itemsPerPage);
multiPagePanel.currentPageIndex = 0;
multiPagePanel.LoadSongs(selectedSongs);
}
}
}