private FilterType Convert(IMusicObject iob) { if (iob is IArtist) return FilterType.Artist; if (iob is IAlbum) return FilterType.Name; if (iob is ITrack) return FilterType.Track; return FilterType.All; }
private static IObservableCollection<TrackView> GetTrackCollectionFromMusicObject(IMusicObject iotherobject) { return null; }
private static IObservableCollection<IAlbum> GetAlbumCollectionFromMusicObject(IMusicObject iotherobject) { return null; }
public void SetFilter(IMusicObject iMo) { var art = iMo as IArtist; if (art != null) PresenterMode = AlbumPresenter.Library; if (iMo == null) { Albums = AllAlbums; Tracks = AllTracks; return; } Albums = iMo.GetAlbumCollection(); Tracks = iMo.GetTrackCollection(); if (art != null) { GoToArtistSync(art); return; } if (iMo is ITrack) { this.PresenterMode = AlbumPresenter.TracksPresenter; return; } if ((this.PresenterMode == AlbumPresenter.Library) || (this.PresenterMode == AlbumPresenter.TracksPresenter)) this.PresenterMode = AlbumPresenter.Classic; }