superstar_v2/PrimaryFormParts/HotSong/PrimaryForm.HotSongTaiwaneseNew.cs
jasonchenwork d041ff1f80 新增 設定檔
調整 心跳功能
修正 藏鏡人
修正 服務鈴
20250703
2025-07-03 18:15:21 +08:00

23 lines
848 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 {Utils.Env.GetInt("HotSongLimit", 100)};";
var selectedSongs = SearchSongs_Mysql(query);
currentPage = 0;
currentSongList = selectedSongs;
totalPages = (int)Math.Ceiling((double)selectedSongs.Count / itemsPerPage);
multiPagePanel.currentPageIndex = 0;
multiPagePanel.LoadSongs(currentSongList);
}
}
}