Beispiel #1
0
        public SidebarViewModel(CurrentTrackMiniViewModel currentTrackMiniViewModel, PlayerControlsViewModel playerControlsViewModel,
                                SettingsIconsViewModel settingsIconsViewModel, PlayShortcutsViewModel playShortcutsViewModel, IMessenger messenger)
        {
            _messenger = messenger;

            CurrentTrackMiniViewModel = currentTrackMiniViewModel;
            PlayerControlsViewModel   = playerControlsViewModel;
            SettingsIconsViewModel    = settingsIconsViewModel;
            PlayShortcutsViewModel    = playShortcutsViewModel;

            SettingsIconsViewModel.OpenMiniPlayer += OnOpenMiniPlayer;
        }
Beispiel #2
0
 public void OnCurrentTrackChanged(Track track)
 {
     CurrentTrackMiniViewModel.OnCurrentTrackChanged(track);
     PlayerControlsViewModel.OnCurrentTrackChanged(track);
 }