Ejemplo n.º 1
0
 /// <summary>
 /// Find the specified device
 /// </summary>
 /// <param name="device"></param>
 /// <returns></returns>
 public PlaybackDevice FindDevice(PlaybackDevice device) => DeviceCollection.SingleOrDefault(dev => device.Equals(dev));
Ejemplo n.º 2
0
 /// <summary>
 /// Find a device given its friendly name
 /// </summary>
 /// <param name="deviceName"></param>
 /// <returns></returns>
 public PlaybackDevice FindDevice(string deviceName) => DeviceCollection.SingleOrDefault(device => device.FriendlyName == deviceName);