private void QueryNewDeviceForEnvironmentVariables(Device device) { try { if (device.State != DeviceState.Offline && device.State != DeviceState.Unknown) { device.RefreshEnvironmentVariables( ); } } catch (IOException) { // if we can't get the build info, it doesn't matter too much } }
private void QueryNewDeviceForEnvironmentVariables( Device device ) { try { if ( device.State != DeviceState.Offline && device.State != DeviceState.Unknown ) { device.RefreshEnvironmentVariables ( ); } } catch ( IOException ) { // if we can't get the build info, it doesn't matter too much } }