コード例 #1
0
ファイル: NormalView.cs プロジェクト: usmanatron/quuxplayer
 public void RemoveTrack(Track Track)
 {
     trackList.RemoveTrack(Track);
 }
コード例 #2
0
ファイル: NormalView.cs プロジェクト: usmanatron/quuxplayer
 public void EnsureVisible(Track Track)
 {
     trackList.EnsureVisible(Track);
 }
コード例 #3
0
ファイル: NormalView.cs プロジェクト: usmanatron/quuxplayer
        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 { }
        }
コード例 #4
0
ファイル: ReplayGain.cs プロジェクト: usmanatron/quuxplayer
 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);
 }
コード例 #5
0
 public static void RegisterAsEmbedded(Track Track)
 {
     addToItems(Track.FilePath, Track.Cover);
     Track.ForceEmbeddedImageNull = false;
 }
コード例 #6
0
 public static ImageItem ImageFromLastFM(Track Track)
 {
     return(ImageFromLastFM(Track.Artist, Track.Album));
 }