public void RemoveTrack(Track Track) { trackList.RemoveTrack(Track); }
public void EnsureVisible(Track Track) { trackList.EnsureVisible(Track); }
public void LoadFilterValues() { try { List <string> filterValues = null; FilterType Type = filterBar.CurrentFilterType; Track t = controller.UsersMostInterestingTrack; string hint = String.Empty; switch (Type) { case FilterType.Playlist: filterValues = filterBar.GetPlaylistFilterValues(); break; case FilterType.Album: filterValues = Database.GetAlbums(filterBar.GetTracksWithoutFiltering(Type, true)); if (t != null) { hint = t.Album; } break; case FilterType.Artist: filterValues = Database.GetMainGroups(filterBar.GetTracksWithoutFiltering(Type, true)); if (t != null) { hint = t.MainGroup; } break; case FilterType.Genre: filterValues = Database.GetGenres(filterBar.GetTracksWithoutFiltering(Type, true)); if (t != null) { hint = t.Genre; } break; case FilterType.Year: filterValues = Database.GetYears(filterBar.GetTracksWithoutFiltering(Type, true)); if (t != null) { hint = t.YearString; } break; case FilterType.Grouping: filterValues = Database.GetGroupings(filterBar.GetTracksWithoutFiltering(Type, true)); if (t != null) { hint = t.Grouping; } break; } filterValueList.LoadFilterValues(Type, filterValues, filterBar.CurrentFilterIsActive ? filterBar.CurrentFilterValue : String.Empty, hint); } catch { } }
private static bool isSameAlbum(Track T1, Track T2) { return(String.Compare(T1.MainGroup, T2.MainGroup, StringComparison.OrdinalIgnoreCase) == 0 && String.Compare(T1.Album, T2.Album, StringComparison.OrdinalIgnoreCase) == 0 && T1.SampleRate == T2.SampleRate); }
public static void RegisterAsEmbedded(Track Track) { addToItems(Track.FilePath, Track.Cover); Track.ForceEmbeddedImageNull = false; }
public static ImageItem ImageFromLastFM(Track Track) { return(ImageFromLastFM(Track.Artist, Track.Album)); }