Exemplo n.º 1
0
 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
     }
 }
Exemplo n.º 2
0
 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
     }
 }