diff --git a/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs b/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs index 90210ed..bb71e34 100644 --- a/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs +++ b/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs @@ -554,8 +554,7 @@ namespace DualScreenDemo string query = $"SELECT * FROM song_library_cache WHERE `song_id` = '{searchText}';"; var searchResults = SearchSongs_Mysql(query); - var song = searchResults[0]; - SongList.Add(song); + // 重置分頁 currentPage = 0; totalPages = (int)Math.Ceiling((double)searchResults.Count / itemsPerPage); @@ -563,6 +562,17 @@ namespace DualScreenDemo multiPagePanel.currentPageIndex = 0; //multiPagePanel.LoadSongs(searchResults); + //判斷跳轉點播介面 + if (searchResults != null && searchResults[0] is SongData) { + currentSelectedSong = searchResults[0] as SongData; + this.DoubleBuffered = true; + this.SuspendLayout(); + + DrawTextOnVodScreenPictureBox(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_有按鈕.png"), currentSelectedSong); + SetVodScreenPictureBoxAndButtonsVisibility(true); + this.ResumeLayout(true); + + } }