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); }
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; }
public ArtistTreeViewNode(string artist, TreeViewNode parent, TreeViewController controller) : base(parent, controller) { Artist = artist; }
public GenreTreeViewNode(string genre, TreeViewNode parent, TreeViewController controller) : base(parent, controller) { Genre = genre; }