2508261630
已點歌曲刪除功能邏輯修正調整
This commit is contained in:
parent
91629da1c4
commit
5ddd093273
@ -102,9 +102,13 @@ namespace DBObj
|
|||||||
|
|
||||||
public static void Cancel(SongData song)
|
public static void Cancel(SongData song)
|
||||||
{
|
{
|
||||||
not_played.Remove(song);
|
if (song.GetState() == PlayState.NotPlayed)
|
||||||
song.SetState(PlayState.Skipped);
|
{
|
||||||
played.Add(song);
|
not_played.Remove(song);
|
||||||
|
song.SetState(PlayState.Skipped);
|
||||||
|
played.Add(song);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Insert(SongData song)
|
public static void Insert(SongData song)
|
||||||
|
@ -104,7 +104,7 @@ namespace DualScreenDemo
|
|||||||
if (isOnOrderedSongsPage)
|
if (isOnOrderedSongsPage)
|
||||||
{
|
{
|
||||||
SetVodScreenPictureBoxAndButtonsVisibility(false);
|
SetVodScreenPictureBoxAndButtonsVisibility(false);
|
||||||
if(currentSelectedSong.GetState()!=PlayState.Playing)SongList.Cancel(currentSelectedSong);
|
SongList.Cancel(currentSelectedSong);
|
||||||
orderedSongsButton.PerformClick();
|
orderedSongsButton.PerformClick();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -129,7 +129,7 @@ namespace DualScreenDemo
|
|||||||
/*var selectedSongs = allSongs.Where(song => song.ArtistA == currentSelectedSong.ArtistA)
|
/*var selectedSongs = allSongs.Where(song => song.ArtistA == currentSelectedSong.ArtistA)
|
||||||
.OrderByDescending(song => song.AddedTime)
|
.OrderByDescending(song => song.AddedTime)
|
||||||
.ToList();*/
|
.ToList();*/
|
||||||
|
isOnOrderedSongsPage = false;
|
||||||
UpdateSongList(selectedSongs);
|
UpdateSongList(selectedSongs);
|
||||||
SetVodScreenPictureBoxAndButtonsVisibility(false);
|
SetVodScreenPictureBoxAndButtonsVisibility(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user