Exemplo n.º 1
0
 public MainWindowViewModel()
 {
     DeviceName     = "Not connected";
     Parameters     = new ObservableCollection <Parameter>();
     Logcat         = new ObservableCollection <string>();
     ConnectCommand = new AsyncCommand(async() => await Connect(), CancellationToken.None);
     InstallCommand = new AsyncCommand(async() => await InstallApp(), CancellationToken.None);
     try
     {
         _adb = Adb.New("..\\..\\..\\adb\\adb.exe");
     }
     catch (AdbException ex)
     {
         MessageBox.Show(ex.Message);
         Environment.Exit(1);
     }
 }