mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
fas
This commit is contained in:
parent
7899b558f2
commit
b0cc3ea817
1 changed files with 14 additions and 0 deletions
|
@ -167,5 +167,19 @@ namespace FRESHMusicPlayer.ViewModels
|
|||
var lengthString = lengthTimeSpan.Days != 0 ? lengthTimeSpan.ToString(@"d\:hh\:mm\:ss") : lengthTimeSpan.ToString(@"hh\:mm\:ss");
|
||||
ContentInfo = $"{Resources.Tracks}: {ContentItems.Count} ・ {lengthString}";
|
||||
}
|
||||
|
||||
public void EnqueueAllCommand()
|
||||
{
|
||||
string[] tracks = ContentItems.Select(x => x.Path).ToArray();
|
||||
MainWindowWm.Player.Queue.Add(tracks);
|
||||
}
|
||||
|
||||
public async void PlayAllCommand()
|
||||
{
|
||||
MainWindowWm.Player.Queue.Clear();
|
||||
string[] tracks = ContentItems.Select(x => x.Path).ToArray();
|
||||
MainWindowWm.Player.Queue.Add(tracks);
|
||||
await MainWindowWm.Player.PlayAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue