public async Task SelectedDevicePing() { IsBusyHeader = true; SelectedDeviceConnectionResult = PingConnectionResult.Busy; try { PingConnectionType connection = await SelectedDevice.PingAsync(); SelectedDeviceConnectionResult = (connection != PingConnectionType.NoConnection) ? PingConnectionResult.Ok : PingConnectionResult.Error; } catch { SelectedDeviceConnectionResult = PingConnectionResult.Error; } finally { IsBusyHeader = false; } }