public ADBTools() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; _adb = new AdbOperations(); _pushFiles = new List <string>(); _pullFiles = new List <string>(); LoadAccents(); RemoteADBHelp.Click += ((sender, args) => { new Help().Show(); }); RefreshIPButton.Click += delegate { BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += delegate { LoadIPs(); }; worker.RunWorkerAsync(); }; BackgroundWorker worker2 = new BackgroundWorker(); worker2.DoWork += delegate { LoadIPs(); }; worker2.RunWorkerAsync(); DeleteIPsButton.Click += async delegate { await DeleteIPs(); LoadIPs(); }; }
public MainWindow() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; _adb = new AdbOperations(); _fastboot = new FastbootOperations(); }
public DeviceWindow() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; _adb = new AdbOperations(); _fastboot = new FastbootOperations(); _bw = new BackgroundWorker(); _bw.DoWork += _bw_DoWork; _bw.RunWorkerCompleted += _bw_RunWorkerCompleted; _bw.RunWorkerAsync(); }