private async Task ExtractFolderToImpl() { if (CurrentFolder == null) { return; } try { await FileOperationView.Extract(_window, _overlay, _filesystem, CurrentFolder); } catch (Exception ex) { TaskDialog.Show(_window, $"Failed to extract folder {CurrentFolder.FullName}", ex); } _overlay.Hide(); }
private async Task ExtractItemsImpl() { var items = SelectedItems.Where(item => item.Tag != null).Select(item => item.Tag).ToArray(); if (items.Length == 0) { return; } try { await FileOperationView.Extract(_window, _overlay, _filesystem, items); } catch (Exception ex) { TaskDialog.Show(_window, $"Failed to extract {items.Length} items", ex); } _overlay.Hide(); }