private void SetPlayback(IPlayback playback) { Output.WriteLine($"{playback.GetType().Name} playback selected"); Output.WriteLine("Set playback to mobile..."); Mobile.PlaybackComponent = playback; Output.WriteLine("Play sound in mobile:"); var data = new object(); Mobile.Play(data); Output.WriteLine(""); }
private void buttonPlaybackUnplug_Click(object sender, System.EventArgs e) { IPlayback unpluggedPlayback = mobile.PlaybackComponent; mobile.PlaybackComponent = null; if (unpluggedPlayback != null) { output.WriteLine($"{unpluggedPlayback.GetType().Name} unplugged."); } UpdateOutputEnabled(); }