예제 #1
0
 void ExecutePlayQueuePlaylistCommand()
 {
     if (_queuePlaylist.Any())
     {
         _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(_queuePlaylist));
     }
 }
예제 #2
0
 protected override void Execute(object parameter)
 {
     if (parameter is IPlaylistItemPlayable playable && playable.PlaylistItemToken is not null and var token)
     {
         if (token.Playlist is ISortablePlaylist)
         {
             _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(token));
         }
     }
 }
예제 #3
0
 protected override void Execute(object parameter)
 {
     if (parameter is IPlaylist playlist)
     {
         _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(playlist));
     }
     else if (parameter is PlaylistToken playlistToken)
     {
         _messenger.Send(VideoPlayRequestMessage.PlayPlaylist(playlistToken));
     }
 }