Пример #1
0
        private void ExecutePlayNextEntry(string currentFile)
        {
            if (!CanPlayNextEntry(currentFile))
            {
                return;
            }

            PlaylistEntry entry = GetNextEntry(currentFile);

            if (entry == null)
            {
                return;
            }

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