private void buttonPlaybackUnplug_Click(object sender, System.EventArgs e)
        {
            PlaybackBase unpluggedPlayback = mobile.PlaybackComponent;

            mobile.PlaybackComponent = null;
            if (unpluggedPlayback != null)
            {
                output.WriteLine($"{unpluggedPlayback.GetType().Name} unplugged.");
            }

            UpdateOutputEnabled();
        }
Exemple #2
0
        public PleerPanelViewModel()
        {
            playback = Playback.Instance();

            playback.notifyPlayIcon += PlayIconNotify;

            PlayIcon        = PackIconKind.Play;
            MuteIcon        = PackIconKind.VolumeHigh;
            _timer          = new System.Windows.Threading.DispatcherTimer();
            _timer.Tick    += new EventHandler(TimerTick);
            _timer.Interval = new TimeSpan(0, 0, 0, 0, 300);
            _timer.Start();
        }
Exemple #3
0
 public AllMusicViewModel()
 {
     playback = Playback.Instance();
     playlist = new Playlist();
 }