예제 #1
0
 public static Core.Contracts.IDevice Convert(Managed.Adb.IDevice device)
 {
     return(new DeviceDTO
     {
         SerialNumber = device.SerialNumber
     });
 }
예제 #2
0
 public void UseDevice(Core.Contracts.IDevice device)
 {
     selectedDevice = connectedDevices.Single(d => d.SerialNumber.Equals(device.SerialNumber));
     typeof(BusyBox).GetProperty(nameof(BusyBox.Available)).SetValue(selectedDevice.BusyBox, false);  // ensure native commands
 }