號碼搜歌跳轉點播介面
This commit is contained in:
parent
70c34f1543
commit
b9ea041a72
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user