/// <summary> /// Class constructor. /// </summary> public OnlineMetadataSettingsViewModel() { // Two lists should got initialized. BannedAlbums = new ObservableCollection<CommonBannedEntity>( Banlist.AlbumMetadataRetrieveBanlist.Select(i => new CommonBannedEntity(CommonItemType.Album, i, this))); BannedArtists = new ObservableCollection<CommonBannedEntity>( Banlist.ArtistMetadataRetrieveBanlist.Select(i => new CommonBannedEntity(CommonItemType.Artist, i, this))); AddArtistCommand = new AddButtonCommand(CommonItemType.Artist, this); AddAlbumCommand = new AddButtonCommand(CommonItemType.Album, this); AppleMusicMrktSelectedIndex = -1; IsSelectionLoaded = false; AppleMusicMrktRegions = new ObservableCollection<AppleMusicMarketEntity>(); }
public void Handle(AddButtonCommand message) { Handle(message.AcSession, message.Input, isCommand: true); }