/// <summary> /// Called when the PlaybackDeviceAvailableMessage message is received /// If this is a change then report it /// </summary> /// <param name="message"></param> private static void DeviceAvailable(PlaybackDevice newDevice) { // If the view data is not available yet, just update the model. // Otherwise report to the view and then update the model MediaControllerViewModel.PlaybackDeviceAvailable = (newDevice != null); if (dataReporter.DataAvailable == true) { DataReporter?.DeviceAvailable(); } }