public AddSongViewModel() { this.AddItemCommand = new RelayCommand(AddItem); this.ParentArtists = new ObservableCollection <ARTISTS>(MusicStructureHelper.GetArtists()); this.ParentAlbums = new ObservableCollection <ALBUMS>(); }
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))); }