2025-04-07 16:54:10 +08:00
|
|
|
namespace DualScreenDemo
|
|
|
|
{
|
|
|
|
public partial class PrimaryForm
|
|
|
|
{
|
|
|
|
private void GroupGuoYuButton_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
groupGuoYuButton.BackgroundImage = groupGuoYuActiveBackground;
|
|
|
|
groupTaiYuButton.BackgroundImage = groupTaiYuNormalBackground;
|
|
|
|
groupYueYuButton.BackgroundImage = groupYueYuNormalBackground;
|
|
|
|
groupYingWenButton.BackgroundImage = groupYingWenNormalBackground;
|
|
|
|
groupRiYuButton.BackgroundImage = groupRiYuNormalBackground;
|
|
|
|
groupHanYuButton.BackgroundImage = groupHanYuNormalBackground;
|
|
|
|
|
2025-04-14 14:17:06 +08:00
|
|
|
/*guoYuSongs = 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();*/
|
|
|
|
String query = "SELECT * FROM SongLibrary WHERE `語別` = '國語' AND (`歌星A分類` = '團' OR `歌星B分類` = '團') ORDER BY `點播次數` DESC";
|
|
|
|
var guoYuSongs = SearchSongs_Mysql(query);
|
2025-04-07 16:54:10 +08:00
|
|
|
currentPage = 0;
|
|
|
|
currentSongList = guoYuSongs;
|
|
|
|
totalPages = (int)Math.Ceiling((double)guoYuSongs.Count / itemsPerPage);
|
|
|
|
|
|
|
|
|
|
|
|
multiPagePanel.currentPageIndex = 0;
|
|
|
|
multiPagePanel.LoadSongs(currentSongList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|