コード例 #1
0
ファイル: PlaylistConfig.cs プロジェクト: Raimusoft/FoxTunes
 public PlaylistConfig(Playlist playlist) : base(StringComparer.OrdinalIgnoreCase)
 {
     this.Playlist = playlist;
     this.Load();
 }
コード例 #2
0
 public AddCdToPlaylistTask(Playlist playlist, int drive, bool cdLookup, string cdLookupHost) : base(playlist)
 {
     this.Drive        = drive;
     this.CdLookup     = cdLookup;
     this.CdLookupHost = cdLookupHost;
 }
コード例 #3
0
 public PlaylistItem GetLastItem(Playlist playlist)
 {
     return(this.GetItems(playlist).LastOrDefault());
 }
コード例 #4
0
 public PlaylistItem GetPreviousItem(Playlist playlist)
 {
     return(this.NavigationStrategy.GetPrevious(this.PlaylistManager.CurrentItem));
 }
コード例 #5
0
 public abstract Task Refresh(Playlist playlist, bool force);
コード例 #6
0
 public PlaylistItem[] GetItems(Playlist playlist)
 {
     return(this.PlaylistCache.GetItems(playlist, () => this.GetItemsCore(playlist)));
 }
コード例 #7
0
 protected virtual PlaylistConfig GetConfig(Playlist playlist)
 {
     return(new PlaylistConfig(playlist));
 }
コード例 #8
0
 public AddCueToPlaylistTask(Playlist playlist, int sequence, string fileName) : base(playlist, sequence)
 {
     this.FileName = fileName;
 }
コード例 #9
0
        public Task AddCueToPlaylist(Playlist playlist, string fileName)
        {
            var index = this.PlaylistBrowser.GetInsertIndex(playlist);

            return(this.AddCueToPlaylist(playlist, index, fileName));
        }
コード例 #10
0
 public AddArchivesToPlaylistTask(Playlist playlist, int sequence, IEnumerable <string> paths, bool clear) : base(playlist, sequence)
 {
     this.Paths = paths;
     this.Clear = clear;
 }
コード例 #11
0
        public Task AddArchivesToPlaylist(Playlist playlist, IEnumerable <string> paths)
        {
            var index = this.PlaylistBrowser.GetInsertIndex(playlist);

            return(this.AddArchivesToPlaylist(playlist, index, paths));
        }