namespace DualScreenDemo { public partial class PrimaryForm { private void HanYuButtonNewSong_Click(object sender, EventArgs e) { guoYuButtonNewSong.BackgroundImage = guoYuNewSongNormalBackground; taiYuButtonNewSong.BackgroundImage = taiYuNewSongNormalBackground; yueYuButtonNewSong.BackgroundImage = yueYuNewSongNormalBackground; yingWenButtonNewSong.BackgroundImage = yingWenNewSongNormalBackground; riYuButtonNewSong.BackgroundImage = riYuNewSongNormalBackground; hanYuButtonNewSong.BackgroundImage = hanYuNewSongActiveBackground; var hanYuSongs2 = SearchSongs_Mysql(setQueryforNewSong("韓語")); currentPage = 0; totalPages = (int)Math.Ceiling((double)hanYuSongs2.Count / itemsPerPage); multiPagePanel.currentPageIndex = 0; multiPagePanel.LoadSongs(hanYuSongs2); } } }