public void SelectItem(IPlaylistItemViewModel item) { try { task.Stop(); playlist.SelectPlaylistItem(item); task.UpdateItem(item.ToTaskItem()); task.Start(); } catch (Exception ex) { logger.Error(" PlaylistController.SelectItem", ex); } }
public TaskItem GetCurrentTaskItem() { return(currentPlaylistItem != null?currentPlaylistItem.ToTaskItem() : default(TaskItem)); }