private void ButtonExtractBootImg_Click(object sender, RoutedEventArgs e) { ux.ExtractBoot(_currentDevInfo); //if (!((MainWindow)App.Current.MainWindow).DevInfoPanel.CurrentDeviceIsRoot) //{ // if (!BoxHelper.ShowChoiceDialog("Warning", "warrningNeedRootAccess").ToBool()) return; //} //FolderBrowserDialog fbd = new FolderBrowserDialog //{ // Description = "请选择保存路径" //}; //if (fbd.ShowDialog() != DialogResult.OK) return; //var args = new DeviceImageExtractorArgs() //{ // DevBasicInfo = _currentDevInfo, // SavePath = fbd.SelectedPath, // ImageType = DeviceImage.Boot, //}; //var extrator = new DeviceImageExtractor(); //extrator.Init(args); //extrator.RunAsync(); //BoxHelper.ShowLoadingDialog(extrator); }
private void ButtonExtractBootImg_Click(object sender, RoutedEventArgs e) { ux.ExtractBoot(_currentDevInfo); }