diff --git a/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs b/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs index ccb1917..b891067 100644 --- a/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs +++ b/PrimaryFormParts/SongSearch/PrimaryForm.SongSearch.NumberSearch.cs @@ -51,7 +51,7 @@ namespace DualScreenDemo private float inputBoxSongIDFontSize; private FontStyle inputBoxSongIDFontStyle; private Color inputBoxSongIDForeColor; - private readonly SQLManager songListManager; + // private readonly SQLManager songListManager; /// /// 點擊「注音歌手搜尋」按鈕時執行的事件處理函式。 /// 此函式負責更新按鈕的背景圖片、載入對應的歌手圖片,並切換相關 UI 控件的可見性。 @@ -596,7 +596,7 @@ namespace DualScreenDemo //multiPagePanel.LoadSongs(searchResults); //判斷跳轉點播介面 - if (searchResults != null && searchResults[0] is SongData) { + if (searchResults.Count!=0 && searchResults[0] is SongData) { currentSelectedSong = searchResults[0] as SongData; this.DoubleBuffered = true; this.SuspendLayout();