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; var yingWenSongs2 = SearchSongs_Mysql(setQueryforNewSong("英語")); currentPage = 0; totalPages = (int)Math.Ceiling((double)yingWenSongs2.Count / itemsPerPage); multiPagePanel.currentPageIndex = 0; multiPagePanel.LoadSongs(yingWenSongs2); } } }