Beispiel #1
0
        public DatabaseView(DataModel dataModel)
        {
            m_DataModel = dataModel;

            Artists = new ObservableCollection <MusicCollectionItem>();
            AlbumsBySelectedArtists = new ObservableCollection <MusicCollectionItem>();
            SongsOnSelectedAlbumsBySelectedArtists = new ObservableCollection <MusicCollectionItem>();

            Genres = new ObservableCollection <MusicCollectionItem>();
            AlbumsOfSelectedGenres = new ObservableCollection <MusicCollectionItem>();
            SongsOnSelectedAlbumsOfSelectedGenres = new ObservableCollection <MusicCollectionItem>();

            ArtistTree           = new ObservableCollection <TreeViewNode>();
            ArtistTreeController = new TreeViewController(ArtistTree);

            GenreTree           = new ObservableCollection <TreeViewNode>();
            GenreTreeController = new TreeViewController(GenreTree);

            DirectoryTree           = new ObservableCollection <TreeViewNode>();
            DirectoryTreeController = new TreeViewController(DirectoryTree);

            m_DataModel.Database.PropertyChanged += new PropertyChangedEventHandler(OnDatabasePropertyChanged);
        }
Beispiel #2
0
 public DirectoryTreeViewNode(string name, TreeViewNode parent, TreeViewController controller) : base(parent, controller)
 {
     m_DirectoryName = name;
 }
 public SongMetadataTreeViewNode(string filename, SongMetadata song, TreeViewNode parent, TreeViewController controller) : base(parent, controller)
 {
     m_Filename          = filename;
     m_ParentIsDirectory = Parent == null || Parent is DirectoryTreeViewNode;
     Song = song;
 }
Beispiel #4
0
 public ArtistTreeViewNode(string artist, TreeViewNode parent, TreeViewController controller) : base(parent, controller)
 {
     Artist = artist;
 }
Beispiel #5
0
 public GenreTreeViewNode(string genre, TreeViewNode parent, TreeViewController controller) : base(parent, controller)
 {
     Genre = genre;
 }