public void ExportDocument(object item) { if (_sheetController != null) { if (item != null && item is DocumentEntry) { var document = item as DocumentEntry; var texts = document.Pages.Select(x => x.Content); _sheetController.ExportPages(texts); } } }