23 lines
992 B
C#
23 lines
992 B
C#
namespace DualScreenDemo
|
|
{
|
|
public partial class PrimaryForm
|
|
{
|
|
private void GroupRiYuButton_Click(object sender, EventArgs e)
|
|
{
|
|
UpdateGroupSubBtns(groupRiYuButton, groupRiYuActiveBackground);
|
|
|
|
/*riYuSongs = allSongs.Where(song => song.Category == "日語" && (song.ArtistACategory == "團" || song.ArtistBCategory == "團"))
|
|
.OrderByDescending(song => song.Plays)
|
|
.ToList();*/
|
|
|
|
string query = "SELECT * FROM song_library_cache WHERE language_name = '日語' AND (`artistA_category` = '團' OR `artistB_category` = '團') ORDER BY song_counts DESC;";
|
|
var riYuSongs = SearchSongs_Mysql(query);
|
|
currentPage = 0;
|
|
totalPages = (int)Math.Ceiling((double)riYuSongs.Count / itemsPerPage);
|
|
|
|
|
|
multiPagePanel.currentPageIndex = 0;
|
|
multiPagePanel.LoadSongs(riYuSongs);
|
|
}
|
|
}
|
|
} |