From b9ea041a729390d7e0d1ff9172460722c088697e Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Fri, 1 Aug 2025 11:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9F=E7=A2=BC=E6=90=9C=E6=AD=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=89=E9=BB=9E=E6=92=AD=E4=BB=8B=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrimaryForm.SongSearch.NumberSearch.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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); + + } }