少傳
This commit is contained in:
parent
8046eb5a35
commit
3f272cbdf4
@ -11,21 +11,13 @@ namespace DualScreenDemo
|
|||||||
riYuButtonNewSong.BackgroundImage = riYuNewSongNormalBackground;
|
riYuButtonNewSong.BackgroundImage = riYuNewSongNormalBackground;
|
||||||
hanYuButtonNewSong.BackgroundImage = hanYuNewSongActiveBackground;
|
hanYuButtonNewSong.BackgroundImage = hanYuNewSongActiveBackground;
|
||||||
|
|
||||||
int songLimit = ReadNewSongLimit();
|
var hanYuSongs2 = SearchSongs_Mysql(setQueryforNewSong("韓語"));
|
||||||
|
|
||||||
/*hanYuSongs2 = allSongs.Where(song => song.Category == "韓語")
|
|
||||||
.OrderByDescending(song => song.AddedTime)
|
|
||||||
.Take(songLimit)
|
|
||||||
.ToList();*/
|
|
||||||
string query = setQueryforNewSong("韓語");
|
|
||||||
var hanYuSongs2 = SearchSongs_Mysql(query);
|
|
||||||
currentPage = 0;
|
currentPage = 0;
|
||||||
currentSongList = hanYuSongs2;
|
|
||||||
totalPages = (int)Math.Ceiling((double)hanYuSongs2.Count / itemsPerPage);
|
totalPages = (int)Math.Ceiling((double)hanYuSongs2.Count / itemsPerPage);
|
||||||
|
|
||||||
|
|
||||||
multiPagePanel.currentPageIndex = 0;
|
multiPagePanel.currentPageIndex = 0;
|
||||||
multiPagePanel.LoadSongs(currentSongList);
|
multiPagePanel.LoadSongs(hanYuSongs2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user