This commit is contained in:
jasonchenwork 2025-07-03 18:13:30 +08:00
parent 8046eb5a35
commit 3f272cbdf4

View File

@ -11,21 +11,13 @@ namespace DualScreenDemo
riYuButtonNewSong.BackgroundImage = riYuNewSongNormalBackground;
hanYuButtonNewSong.BackgroundImage = hanYuNewSongActiveBackground;
int songLimit = ReadNewSongLimit();
/*hanYuSongs2 = allSongs.Where(song => song.Category == "韓語")
.OrderByDescending(song => song.AddedTime)
.Take(songLimit)
.ToList();*/
string query = setQueryforNewSong("韓語");
var hanYuSongs2 = SearchSongs_Mysql(query);
var hanYuSongs2 = SearchSongs_Mysql(setQueryforNewSong("韓語"));
currentPage = 0;
currentSongList = hanYuSongs2;
totalPages = (int)Math.Ceiling((double)hanYuSongs2.Count / itemsPerPage);
multiPagePanel.currentPageIndex = 0;
multiPagePanel.LoadSongs(currentSongList);
multiPagePanel.LoadSongs(hanYuSongs2);
}
}
}