Beispiel #1
0
        private void ExecutePlayNextEntry(string currentFile)
        {
            if (!CanPlayNextEntry(currentFile))
            {
                return;
            }

            PlaylistEntry entry = GetNextEntry(currentFile);

            if (entry == null)
            {
                return;
            }

            OnPlayEntry(entry);
        }
Beispiel #2
0
 public void RequestPlayEntry(PlaylistEntry entry)
 {
     OnPlayEntry(entry);
 }
Beispiel #3
0
 protected virtual void OnPlayEntry(PlaylistEntry entry)
 {
     SelectedEntry = entry;
     PlayEntry?.Invoke(this, entry);
 }
Beispiel #4
0
 public void AddEntry(PlaylistEntry entry)
 {
     Entries.Add(entry);
     CommandManager.InvalidateRequerySuggested();
 }