private void OnPlaylistChanged(ObservableCollection<PlaylistItem> oldPlaylist, ObservableCollection<PlaylistItem> newPlaylist) { oldPlaylist.IfNotNull(i => i.CollectionChanged -= Playlist_CollectionChanged); newPlaylist.IfNotNull(i => i.CollectionChanged += Playlist_CollectionChanged); }