Ejemplo n.º 1
0
 private void OnCurrentAudioChanged(CurrentAudioChangedMessage message)
 {
     _artRequested = false;
 }
Ejemplo n.º 2
0
        private void OnCurrentAudioChanged(CurrentAudioChangedMessage message)
        {
            RaisePropertyChanged("CurrentAudio");
            RaisePropertyChanged("CurrentRadio");
            RaisePropertyChanged("IsPlaying");
            RaisePropertyChanged("CurrentPlaylist");
            RaisePropertyChanged("WindowTitle");


            _artRequested = false;
            _statusUpdated = false;
            _nowPlayingUpdated = false;
            _scrobbled = false;

            GetTrackImage();

            if (Settings.Instance.ShowTrackNotifications && message.OldAudio != null) //disable show on first start by checking for null
                ShowTrackNotification(message.NewAudio);
        }
Ejemplo n.º 3
0
        private void OnCurrentAudioChanged(CurrentAudioChangedMessage message)
        {
            RaisePropertyChanged("CurrentAudio");
            RaisePropertyChanged("CurrentRadio");
            RaisePropertyChanged("IsPlaying");
            RaisePropertyChanged("CurrentPlaylist");
            RaisePropertyChanged("WindowTitle");
            RaisePropertyChanged("CanBroadcast");

            _artRequested = false;
            _statusUpdated = false;
            _nowPlayingUpdated = false;
            _scrobbled = false;

            CancelCover();
            GetTrackImage(_coverCancellationToken.Token);

            if (Settings.Instance.ShowTrackNotifications && message.OldAudio != null)
                //disable show on first start by checking for null
            {
                Application.Current.Dispatcher.BeginInvoke(new Action(() =>
                {
                    ShowTrackNotification(message.NewAudio);
                }));
            }
        }