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(); }
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(); }
public AllMusicViewModel() { playback = Playback.Instance(); playlist = new Playlist(); }