2025-04-07 16:54:10 +08:00
|
|
|
namespace DualScreenDemo
|
|
|
|
{
|
|
|
|
public partial class PrimaryForm
|
|
|
|
{
|
|
|
|
private void YingWenButtonNewSong_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
guoYuButtonNewSong.BackgroundImage = guoYuNewSongNormalBackground;
|
|
|
|
taiYuButtonNewSong.BackgroundImage = taiYuNewSongNormalBackground;
|
|
|
|
yueYuButtonNewSong.BackgroundImage = yueYuNewSongNormalBackground;
|
|
|
|
yingWenButtonNewSong.BackgroundImage = yingWenNewSongActiveBackground;
|
|
|
|
riYuButtonNewSong.BackgroundImage = riYuNewSongNormalBackground;
|
|
|
|
hanYuButtonNewSong.BackgroundImage = hanYuNewSongNormalBackground;
|
|
|
|
|
|
|
|
int songLimit = ReadNewSongLimit();
|
|
|
|
|
2025-05-20 16:16:27 +08:00
|
|
|
/*yingWenSongs2 = allSongs.Where(song => song.Category == "英語")
|
2025-04-07 16:54:10 +08:00
|
|
|
.OrderByDescending(song => song.AddedTime)
|
|
|
|
.Take(songLimit)
|
2025-04-14 16:32:29 +08:00
|
|
|
.ToList();*/
|
2025-05-20 16:16:27 +08:00
|
|
|
string query = setQueryforNewSong("英語");
|
2025-04-14 16:32:29 +08:00
|
|
|
var yingWenSongs2 = SearchSongs_Mysql(query);
|
|
|
|
|
2025-04-07 16:54:10 +08:00
|
|
|
currentPage = 0;
|
|
|
|
currentSongList = yingWenSongs2;
|
|
|
|
totalPages = (int)Math.Ceiling((double)yingWenSongs2.Count / itemsPerPage);
|
|
|
|
|
|
|
|
|
|
|
|
multiPagePanel.currentPageIndex = 0;
|
|
|
|
multiPagePanel.LoadSongs(currentSongList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|