Exemplo n.º 1
0
        public AddSongViewModel()
        {
            this.AddItemCommand = new RelayCommand(AddItem);

            this.ParentArtists = new ObservableCollection <ARTISTS>(MusicStructureHelper.GetArtists());
            this.ParentAlbums  = new ObservableCollection <ALBUMS>();
        }
Exemplo n.º 2
0
        private void GetItems()
        {
            MusicStructureHelper.InitializeDB();

            var children = MusicStructureHelper.GetArtists();

            this.Items = new ObservableCollection<MusicItemViewModel>(children.
                Select(x => new MusicItemViewModel(ItemTypeEnum.Artist, x.Name, x.ID)));
        }