public MainWindowViewModel(ILibraryService libraryService, IUserSettings userSettings, Library library,
                                   IMessenger messenger, IPlaylist playlist, MainViewModel mainViewModel, SidebarViewModel sidebarViewModel,
                                   IPlayer player)
        {
            _libraryService = libraryService;
            _userSettings   = userSettings;
            _messenger      = messenger;

            _library = library;
            _player  = player;

            MainViewModel    = mainViewModel;
            SidebarViewModel = sidebarViewModel;

            playlist.CurrentTrackChanged            += OnCurrentTrackChanged;
            MainViewModel.FavouritePlaylistsUpdated += OnFavouritePlaylistsUpdated;
        }
 private void OnCurrentTrackChanged(Track track)
 {
     SidebarViewModel.OnCurrentTrackChanged(track);
     MainViewModel.OnCurrentTrackChanged(track);
 }
 private void OnFavouritePlaylistsUpdated()
 {
     SidebarViewModel.LoadPlaylists();
 }