コード例 #1
0
 private void OnCurrentAudioChanged(CurrentAudioChangedMessage message)
 {
     _artRequested = false;
 }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: justdude/meridian
        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);
        }
コード例 #3
0
ファイル: MainViewModel.cs プロジェクト: kostyatab/meridian
        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);
                }));
            }
        }